diff options
author | dmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-11 12:09:46 +0000 |
---|---|---|
committer | dmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-11 12:09:46 +0000 |
commit | b39f4f17a3f3535426f1f1f2761ac50daea6d9b9 (patch) | |
tree | ed2408398edecb9ef66685ed1ccbf7924a4a6cf8 /tools | |
parent | f737ecc1ed5b3f8f21f2a61b5208f8e2fca44bb4 (diff) | |
download | chromium_src-b39f4f17a3f3535426f1f1f2761ac50daea6d9b9.zip chromium_src-b39f4f17a3f3535426f1f1f2761ac50daea6d9b9.tar.gz chromium_src-b39f4f17a3f3535426f1f1f2761ac50daea6d9b9.tar.bz2 |
Add the number of alloc and free in the dmprof expand command.
BUG=123750
NOTRY=True
Review URL: https://chromiumcodereview.appspot.com/16176004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205498 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rw-r--r-- | tools/deep_memory_profiler/dmprof.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/deep_memory_profiler/dmprof.py b/tools/deep_memory_profiler/dmprof.py index 87b494b..7452c93 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)], |