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

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: 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 03b5e27b041b0e91f8d9fc600a9648fa13b345f8..7df96ce375f217216138012d37673bf130fbde71 100644
--- a/tools/deep_memory_profiler/dmprof.py
+++ b/tools/deep_memory_profiler/dmprof.py
@@ -1662,6 +1662,8 @@ 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
peria 2013/06/11 08:36:36 Please put a space just after ')', and remove a sp
stacktrace_sequence += ' (type.name=%s) ' % bucket.typeinfo_name
« 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