diff options
author | dmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-11 11:44:15 +0000 |
---|---|---|
committer | dmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-11 11:44:15 +0000 |
commit | ae71202dffd8d6cb3eccc463d3937c85e2ad9502 (patch) | |
tree | 5cbbfe95c4d547c3d46173cf7edd393d61e89c6f /tools/deep_memory_profiler | |
parent | fd06f6f0ba92a57efbfa87ff3f467b4052babbe8 (diff) | |
download | chromium_src-ae71202dffd8d6cb3eccc463d3937c85e2ad9502.zip chromium_src-ae71202dffd8d6cb3eccc463d3937c85e2ad9502.tar.gz chromium_src-ae71202dffd8d6cb3eccc463d3937c85e2ad9502.tar.bz2 |
Read RunID from dumps and skip unknown META info until MMAP_LIST: in dmprof.
BUG=None
NOTRY=True
Review URL: https://chromiumcodereview.appspot.com/18988003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211081 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/deep_memory_profiler')
-rw-r--r-- | tools/deep_memory_profiler/dmprof.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/deep_memory_profiler/dmprof.py b/tools/deep_memory_profiler/dmprof.py index 9ea535e..9636967 100644 --- a/tools/deep_memory_profiler/dmprof.py +++ b/tools/deep_memory_profiler/dmprof.py @@ -1108,6 +1108,7 @@ class Dump(object): self._stacktrace_lines = [] self._global_stats = {} # used only in apply_policy + self._run_id = '' self._pagesize = 4096 self._pageframe_length = 0 self._pageframe_encoding = '' @@ -1299,8 +1300,14 @@ class Dump(object): self._pageframe_encoding = 'base64' elif word == 'PageCount': self._has_pagecount = True - else: + elif self._lines[ln].startswith('RunID: '): + self._run_id = self._lines[ln][7:] + elif (self._lines[ln].startswith('MMAP_LIST:') or + self._lines[ln].startswith('GLOBAL_STATS:')): + # Skip until "MMAP_LIST:" or "GLOBAL_STATS" is found. break + else: + pass ln += 1 def _parse_mmap_list(self): |