aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2017-02-21 11:42:32 +0100
committerUlf Hermann <ulf.hermann@qt.io>2017-02-22 10:17:02 +0000
commit65e22d5a0a401d94689a8e0302a6f104f0ff4264 (patch)
tree411a2091117da408d675dd07970644e490ad3cab /src/plugins/qmlprofiler
parent5667fdc46a8610c7dd723db2be746931ef2e4a08 (diff)
QmlProfiler: Drop some dead code
Change-Id: I3eead26da7048ecc839edcc946c677da8a7134be Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler')
-rw-r--r--src/plugins/qmlprofiler/flamegraphmodel.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/qmlprofiler/flamegraphmodel.cpp b/src/plugins/qmlprofiler/flamegraphmodel.cpp
index 5f5ddb7a6d..31cb692440 100644
--- a/src/plugins/qmlprofiler/flamegraphmodel.cpp
+++ b/src/plugins/qmlprofiler/flamegraphmodel.cpp
@@ -108,7 +108,6 @@ void FlameGraphModel::loadEvent(const QmlEvent &event, const QmlEventType &type)
QStack<QmlEvent> &stack = isCompiling ? m_compileStack : m_callStack;
FlameGraphData *&stackTop = isCompiling ? m_compileStackTop : m_callStackTop;
- const QmlEvent *potentialParent = &(stack.top());
if (type.message() == MemoryAllocation) {
if (type.detailType() == HeapPage)
return; // We're only interested in actual allocations, not heap pages being mmap'd
@@ -123,10 +122,9 @@ void FlameGraphModel::loadEvent(const QmlEvent &event, const QmlEventType &type)
}
} else if (event.rangeStage() == RangeEnd) {
- stackTop->duration += event.timestamp() - potentialParent->timestamp();
+ stackTop->duration += event.timestamp() - stack.top().timestamp();
stack.pop();
stackTop = stackTop->parent;
- potentialParent = &(stack.top());
} else {
QTC_ASSERT(event.rangeStage() == RangeStart, return);
stack.push(event);