Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: tools/deep_memory_profiler/dmprof.py

Issue 16176004: Add the number of alloc and free in the dmprof expand command. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased and fixed Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/deep_memory_profiler/dmprof.py
diff --git a/tools/deep_memory_profiler/dmprof.py b/tools/deep_memory_profiler/dmprof.py
index 87b494bd1b4202cb5390e86edc990db584776640..7452c934d38ce7079754f714e5d643c558e4ded1 100644
--- a/tools/deep_memory_profiler/dmprof.py
+++ b/tools/deep_memory_profiler/dmprof.py
@@ -1662,9 +1662,11 @@ class ExpandCommand(Command):
component_match = policy.find(bucket)
if component_match == component_name:
stacktrace_sequence = ''
+ stacktrace_sequence += '(alloc=%d) ' % int(words[ALLOC_COUNT])
+ stacktrace_sequence += '(free=%d) ' % int(words[FREE_COUNT])
if bucket.typeinfo:
- stacktrace_sequence += '(type=%s)' % bucket.symbolized_typeinfo
- stacktrace_sequence += ' (type.name=%s) ' % bucket.typeinfo_name
+ stacktrace_sequence += '(type=%s) ' % bucket.symbolized_typeinfo
+ stacktrace_sequence += '(type.name=%s) ' % bucket.typeinfo_name
for function, sourcefile in zip(
bucket.symbolized_stackfunction[
0 : min(len(bucket.symbolized_stackfunction), 1 + depth)],
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698