summaryrefslogtreecommitdiffstats
path: root/tools/deep_memory_profiler
diff options
context:
space:
mode:
authordmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-12 05:12:34 +0000
committerdmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-12 05:12:34 +0000
commitd288fa240f9c32cf26c4a07afcf50a73c4987415 (patch)
treed045b268b80e2d247397dadbe18d680862093f5b /tools/deep_memory_profiler
parentb9b9b5d4ff273058659f6e53bfff1b862a1389f4 (diff)
downloadchromium_src-d288fa240f9c32cf26c4a07afcf50a73c4987415.zip
chromium_src-d288fa240f9c32cf26c4a07afcf50a73c4987415.tar.gz
chromium_src-d288fa240f9c32cf26c4a07afcf50a73c4987415.tar.bz2
Add mapped permission and pathname in the 'map' subcommand of dmprof.
BUG=None NOTRY=True Review URL: https://chromiumcodereview.appspot.com/18244004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211329 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/deep_memory_profiler')
-rw-r--r--tools/deep_memory_profiler/dmprof.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/deep_memory_profiler/dmprof.py b/tools/deep_memory_profiler/dmprof.py
index 9636967..156de0d 100644
--- a/tools/deep_memory_profiler/dmprof.py
+++ b/tools/deep_memory_profiler/dmprof.py
@@ -2058,14 +2058,15 @@ class MapCommand(Command):
out.write('None\n')
elif value[0] == 'hooked':
component_match, _ = policy.find_mmap(value, bucket_set)
- out.write('hooked %s: %s @ %d\n' % (
- value[1]['type'] if 'type' in value[1] else 'None',
- component_match, value[1]['bucket_id']))
+ out.write('%s @ %d\n' % (component_match, value[1]['bucket_id']))
else:
+ component_match = policy.find_unhooked(value)
region_info = value[1]
size = region_info['committed']
- out.write('unhooked %s: %d bytes committed\n' % (
- region_info['type'] if 'type' in region_info else 'None', size))
+ out.write('%s [%d bytes] %s%s%s%s %s\n' % (
+ component_match, size, value[1]['vma']['readable'],
+ value[1]['vma']['writable'], value[1]['vma']['executable'],
+ value[1]['vma']['private'], value[1]['vma']['name']))
class ExpandCommand(Command):