From 358198dd8e2a1f5a55f64491ed9bddac1afb40a4 Mon Sep 17 00:00:00 2001 From: "dmikurube@chromium.org" Date: Tue, 28 May 2013 03:47:33 +0000 Subject: Add the reason in heap profiler dumps. BUG=123750 Review URL: https://chromiumcodereview.appspot.com/14823009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202493 0039d316-1c4b-4281-b951-d872f2087c98 --- tools/deep_memory_profiler/dmprof.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/deep_memory_profiler') diff --git a/tools/deep_memory_profiler/dmprof.py b/tools/deep_memory_profiler/dmprof.py index 8327f96..af32bfa 100644 --- a/tools/deep_memory_profiler/dmprof.py +++ b/tools/deep_memory_profiler/dmprof.py @@ -944,6 +944,8 @@ class Dump(object): self._time += float(matched_format.group(2)[1:]) / 1000.0 elif matched_seconds: self._time = float(matched_seconds.group(1)) + elif self._lines[ln].startswith('Reason:'): + pass # Nothing to do for 'Reason:' else: break ln += 1 -- cgit v1.1