projects
/
sdk
/
tools
/
heaptrack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d91dab
)
Do not print zero-cost sub-branches in diff mode
author
Milian Wolff
<mail@milianw.de>
Tue, 9 May 2017 11:01:37 +0000
(13:01 +0200)
committer
Milian Wolff
<mail@milianw.de>
Tue, 9 May 2017 11:01:37 +0000
(13:01 +0200)
src/analyze/print/heaptrack_print.cpp
patch
|
blob
|
history
diff --git
a/src/analyze/print/heaptrack_print.cpp
b/src/analyze/print/heaptrack_print.cpp
index
15a077e
..
6881e80
100644
(file)
--- a/
src/analyze/print/heaptrack_print.cpp
+++ b/
src/analyze/print/heaptrack_print.cpp
@@
-312,6
+312,9
@@
struct Printer final : public AccumulatedTraceData
int64_t handled = 0;
for (size_t j = 0; j < min(subPeakLimit, allocation.traces.size()); ++j) {
const auto& trace = allocation.traces[j];
+ if (!(trace.*member)) {
+ break;
+ }
sublabel(trace);
handled += trace.*member;
printBacktrace(trace.traceIndex, cout, 2, true);