diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2016-06-03 09:17:14 +0200 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2016-07-03 18:53:56 +0000 |
commit | 2dd5a792f765ebeac94532901e9ad825a7f9eb40 (patch) | |
tree | 09ce372bd2df78832c3c292f127c823405495225 /src/core/jobs | |
parent | d016b7a5fcc97279eb17fef9383597a0ad5ba6a6 (diff) |
JobStats write fix
The write of the frame needs to be performed before we start the new frame.
Otherwise, doing the write just after the submission could clear the cache
when jobs (such as texture loading) taking longer than submission are still
running. In turn that results in the jobs never making it into the trace file.
Change-Id: I7f4883fc33a778edd5d266181c5dbff5a8e568a1
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/core/jobs')
-rw-r--r-- | src/core/jobs/qaspectjobmanager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/jobs/qaspectjobmanager.cpp b/src/core/jobs/qaspectjobmanager.cpp index 3ee756091..2a8006b10 100644 --- a/src/core/jobs/qaspectjobmanager.cpp +++ b/src/core/jobs/qaspectjobmanager.cpp @@ -102,6 +102,7 @@ void QAspectJobManager::enqueueJobs(const QVector<QAspectJobPtr> &jobQueue) } m_dependencyHandler->addDependencies(qMove(dependencyList)); #ifdef QT3D_JOBS_RUN_STATS + QThreadPooler::writeFrameJobLogStats(); QThreadPooler::starNewFrameJobLogsStats(); #endif m_threadPooler->mapDependables(taskList); |