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

Unified Diff: tools/deep_memory_profiler/subcommands/expand.py

Issue 587193002: dmprof expand command supports to analyze unhooked components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/subcommands/expand.py
diff --git a/tools/deep_memory_profiler/subcommands/expand.py b/tools/deep_memory_profiler/subcommands/expand.py
index 2bb54563775f844314dc8a5c28ef6093138df431..088b6e9d10a087328b729921006cab40e588a411 100644
--- a/tools/deep_memory_profiler/subcommands/expand.py
+++ b/tools/deep_memory_profiler/subcommands/expand.py
@@ -115,3 +115,24 @@ class ExpandCommand(SubCommand):
if component_match == component_name:
ExpandCommand._add_size('', bucket, depth,
region[1]['committed'], sizes)
+ elif rule.allocator_type == 'unhooked':
+ for addr, region in dump.iter_map:
+ if region[0] != 'unhooked':
+ continue
+ component_match = policy.find_unhooked(region)
+ if component_match == component_name:
+ precedence = ''
+ precedence += '%s-' % hex(addr[0])[2:]
+ precedence += '%s' % hex(addr[1])[2:]
+ precedence += ' %s' % region[1]['vma']['readable']
+ precedence += '%s' % region[1]['vma']['writable']
+ precedence += '%s' % region[1]['vma']['executable']
+ precedence += '%s' % region[1]['vma']['private']
+ precedence += ' %s' % region[1]['vma']['offset']
+ precedence += ' %s:' % region[1]['vma']['major']
+ precedence += '%s' % region[1]['vma']['minor']
+ precedence += ' %s' % region[1]['vma']['inode']
+ precedence += ' %s' % region[1]['vma']['name']
+ if not precedence in sizes:
+ sizes[precedence] = 0
+ sizes[precedence] += region[1]['committed']
« 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