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

Unified Diff: tools/deep_memory_profiler/dmprof

Issue 10411047: Type profiler by intercepting 'new' and 'delete' expressions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reflected the comments #17-#19. Created 8 years, 4 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
Index: tools/deep_memory_profiler/dmprof
diff --git a/tools/deep_memory_profiler/dmprof b/tools/deep_memory_profiler/dmprof
index e4c04b0b89c9696fdd274ac19a861cba3dd20728..b6e2990ed7cc5b942358100db3e89e7523026e08 100755
--- a/tools/deep_memory_profiler/dmprof
+++ b/tools/deep_memory_profiler/dmprof
@@ -550,7 +550,8 @@ class Dump(object):
sum(self.counters[i] for i in removed))
if 'total-exclude-profiler' in sizes:
sizes['total-exclude-profiler'] = (
- self.counters['total_committed'] - sizes['mmap-profiler'])
+ self.counters['total_committed'] -
+ (sizes['mmap-profiler'] + sizes['mmap-allocated-type']))
if 'hour' in sizes:
sizes['hour'] = (self.dump_time - first_dump_time) / 60.0 / 60.0
if 'minute' in sizes:

Powered by Google App Engine
This is Rietveld 408576698