QmlProfiler: Don't add an extra nanosecond to the flame graph bottom

Change-Id: Icda2b69363439de92a012a0cf46b8084b69d777d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Ulf Hermann
2017-08-10 17:01:12 +02:00
parent 2307e10aa2
commit afdf0d5ec4

View File

@@ -63,7 +63,7 @@ FlameGraphModel::FlameGraphModel(QmlProfilerModelManager *modelManager,
void FlameGraphModel::clear()
{
beginResetModel();
m_stackBottom = FlameGraphData(0, -1, 1);
m_stackBottom = FlameGraphData(0, -1, 0);
m_callStack.clear();
m_compileStack.clear();
m_callStack.append(QmlEvent());