diff options
author | Ulf Hermann <ulf.hermann@digia.com> | 2014-02-21 14:15:51 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-25 11:05:22 +0100 |
commit | 481e5257c9de4c76a8255eb033d5782aae9812e0 (patch) | |
tree | aeb413aaca936b1b6663c52d3d787bfff98c1e6c /src/qml/debugger/qqmlprofilerservice_p.h | |
parent | 90a7249e70b37f97907a28ccc6016064231eb861 (diff) |
Don't needlessly flush start times when stopping profiling
QQmlProfilerService::messageReceived() can call stopProfiling() multiple
times in a row. If we flush the start times every time we get
inconsistent data in the client. Profiler adapters should be removed
from the start times when they're deleted, though.
Task-number: QTCREATORBUG-11532
Change-Id: I6820971b7a93a7337cd8ad1b7b8b5aafdd654ab5
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/qml/debugger/qqmlprofilerservice_p.h')
-rw-r--r-- | src/qml/debugger/qqmlprofilerservice_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/debugger/qqmlprofilerservice_p.h b/src/qml/debugger/qqmlprofilerservice_p.h index 9e05424ce1..f278e139de 100644 --- a/src/qml/debugger/qqmlprofilerservice_p.h +++ b/src/qml/debugger/qqmlprofilerservice_p.h @@ -102,6 +102,7 @@ private: void sendMessages(); void addEngineProfiler(QQmlAbstractProfilerAdapter *profiler, QQmlEngine *engine); + void removeProfilerFromStartTimes(const QQmlAbstractProfilerAdapter *profiler); QElapsedTimer m_timer; |