Profile a pixmap start event also when loading is asynchronous.

If those events aren't profiled we get unmatched events for finished
loading and errors.

Task-number: QTBUG-35337

Change-Id: I132638edf5625566e37ee06453484f80b2adb74a
Reviewed-by: Ulf Hermann <ulf.hermann@digia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
This commit is contained in:
Ulf Hermann 2013-12-03 14:45:12 +01:00 committed by The Qt Project
parent 52dfe30201
commit 433949df18
1 changed files with 3 additions and 0 deletions

View File

@ -519,6 +519,9 @@ void QQuickPixmapReader::processJobs()
runningJob->loading = true; runningJob->loading = true;
QUrl url = runningJob->url; QUrl url = runningJob->url;
QQmlPixmapProfiler pixmapProfiler;
pixmapProfiler.startLoading(url);
QSize requestSize = runningJob->requestSize; QSize requestSize = runningJob->requestSize;
locker.unlock(); locker.unlock();
processJob(runningJob, url, requestSize); processJob(runningJob, url, requestSize);