summaryrefslogtreecommitdiffstats
path: root/tools/deep_memory_profiler
diff options
context:
space:
mode:
authordmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-28 03:47:33 +0000
committerdmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-28 03:47:33 +0000
commit358198dd8e2a1f5a55f64491ed9bddac1afb40a4 (patch)
tree8c158e1231c2c082ecce007d78b86fe4efec54c9 /tools/deep_memory_profiler
parent7a2ce049b7b531ffa930fd4cea0ee189e6266763 (diff)
downloadchromium_src-358198dd8e2a1f5a55f64491ed9bddac1afb40a4.zip
chromium_src-358198dd8e2a1f5a55f64491ed9bddac1afb40a4.tar.gz
chromium_src-358198dd8e2a1f5a55f64491ed9bddac1afb40a4.tar.bz2
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
Diffstat (limited to 'tools/deep_memory_profiler')
-rw-r--r--tools/deep_memory_profiler/dmprof.py2
1 files changed, 2 insertions, 0 deletions
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