Exclude stop indices from GUI backtraces.
authorMilian Wolff <milian.wolff@kdab.com>
Wed, 2 Sep 2015 13:52:27 +0000 (15:52 +0200)
committerMilian Wolff <milian.wolff@kdab.com>
Wed, 2 Sep 2015 13:52:27 +0000 (15:52 +0200)
gui/parser.cpp

index ab13be0..7739c26 100644 (file)
@@ -164,6 +164,9 @@ QVector<RowData> mergeAllocations(const AccumulatedTraceData& data)
                 it = rows->insert(it, {allocation.allocations, allocation.peak, allocation.leaked, allocation.allocated,
                                         location, nullptr, {}});
             }
+            if (data.isStopIndex(ip.functionIndex)) {
+                break;
+            }
             traceIndex = trace.parentIndex;
             rows = &it->children;
         }