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

Unified Diff: third_party/tcmalloc/chromium/src/deep-heap-profile.h

Issue 10825075: Classify memory usage by allocated type in Deep Memory Profiler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 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 | third_party/tcmalloc/chromium/src/deep-heap-profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/tcmalloc/chromium/src/deep-heap-profile.h
diff --git a/third_party/tcmalloc/chromium/src/deep-heap-profile.h b/third_party/tcmalloc/chromium/src/deep-heap-profile.h
index 1eebdaa263e742f503ce27599708de248c8802ae..9237569f01fc8f312284808187138553861521e4 100644
--- a/third_party/tcmalloc/chromium/src/deep-heap-profile.h
+++ b/third_party/tcmalloc/chromium/src/deep-heap-profile.h
@@ -26,6 +26,10 @@
#include "config.h"
+#if defined(TYPE_PROFILING)
+#include <typeinfo>
+#endif
+
#if defined(__linux__)
#define DEEP_HEAP_PROFILE 1
#endif
@@ -87,6 +91,9 @@ class DeepHeapProfile {
#ifdef DEEP_HEAP_PROFILE
struct DeepBucket {
Bucket* bucket;
+#if defined(TYPE_PROFILING)
+ const std::type_info* type;
+#endif
size_t committed_size;
bool is_mmap;
int id; // Unique ID of the bucket.
@@ -211,7 +218,11 @@ class DeepHeapProfile {
// Get the DeepBucket object corresponding to the given |bucket|.
// DeepBucket is an extension to Bucket which is declared above.
- DeepBucket* GetDeepBucket(Bucket* bucket, bool is_mmap, DeepBucket** table);
+ DeepBucket* GetDeepBucket(Bucket* bucket, bool is_mmap,
+#if defined(TYPE_PROFILING)
+ const std::type_info* type,
+#endif
+ DeepBucket** table);
// Reset committed_size member variables in DeepBucket objects to 0.
void ResetCommittedSize(DeepBucket** deep_table);
« no previous file with comments | « no previous file | third_party/tcmalloc/chromium/src/deep-heap-profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698