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:
parent
52dfe30201
commit
433949df18
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue