Don't needlessly flush start times when stopping profiling
authorUlf Hermann <ulf.hermann@digia.com>
Fri, 21 Feb 2014 13:15:51 +0000 (14:15 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 25 Feb 2014 10:05:22 +0000 (11:05 +0100)
commit481e5257c9de4c76a8255eb033d5782aae9812e0
treeaeb413aaca936b1b6663c52d3d787bfff98c1e6c
parent90a7249e70b37f97907a28ccc6016064231eb861
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>
src/qml/debugger/qqmlprofilerservice.cpp
src/qml/debugger/qqmlprofilerservice_p.h