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:
577c088
)
Don't create single-entry trees output.
author
Milian Wolff
<mail@milianw.de>
Thu, 15 May 2014 20:47:48 +0000
(22:47 +0200)
committer
Milian Wolff
<mail@milianw.de>
Thu, 15 May 2014 20:47:48 +0000
(22:47 +0200)
malloctrace.cpp
patch
|
blob
|
history
diff --git
a/malloctrace.cpp
b/malloctrace.cpp
index
04bc65a
..
8766f6a
100644
(file)
--- a/
malloctrace.cpp
+++ b/
malloctrace.cpp
@@
-192,6
+192,10
@@
unsigned int print_caller()
}
}
+ if (tree.depth == 1) {
+ return tree.data[0];
+ }
+
auto& treeCache = threadData.treeCache;
auto it = treeCache.find(tree);
if (it == treeCache.end()) {