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

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

Issue 15418002: Record Chrome trace events in tcmalloc heap profiles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments 2 Created 7 years, 6 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: third_party/tcmalloc/chromium/src/heap-profile-table.h
diff --git a/third_party/tcmalloc/chromium/src/heap-profile-table.h b/third_party/tcmalloc/chromium/src/heap-profile-table.h
index c2ad39f9138f4049fc9de2e45a385a8e1819e687..5efa8b559b10bf22b5cf120203e2d2fbcbe2151c 100644
--- a/third_party/tcmalloc/chromium/src/heap-profile-table.h
+++ b/third_party/tcmalloc/chromium/src/heap-profile-table.h
@@ -177,6 +177,10 @@ class HeapProfileTable {
// size of allocated space.
void IterateOrderedAllocContexts(AllocContextIterator callback) const;
+ // Turn off generation of profile data from /proc/self/maps. This data is
+ // not needed by profiles generated with pseudo-stacks.
+ void DisableProfileSelfMaps();
+
// Fill profile data into buffer 'buf' of size 'size'
// and return the actual size occupied by the dump in 'buf'.
// The profile buckets are dumped in the decreasing order
@@ -457,6 +461,9 @@ class HeapProfileTable {
bool profile_mmap_;
+ // Should /proc/self/maps information be included in the profile?
+ bool profile_self_maps_;
+
// Bucket hash table for malloc.
// We hand-craft one instead of using one of the pre-written
// ones because we do not want to use malloc when operating on the table.

Powered by Google App Engine
This is Rietveld 408576698