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

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

Issue 14823009: Add the reason in heap profiler dumps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased again Created 7 years, 7 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 7cf95fdc30ebce4a2e6b04437712fea38d3b5b68..4a943a18c0a5fa6fd327aff934605c7a81722333 100644
--- a/third_party/tcmalloc/chromium/src/deep-heap-profile.h
+++ b/third_party/tcmalloc/chromium/src/deep-heap-profile.h
@@ -83,7 +83,9 @@ class DeepHeapProfile {
//
// In addition, a list of buckets is dumped into a ".buckets" file in
// descending order of allocated bytes.
- int FillOrderedProfile(char raw_buffer[], int buffer_size);
+ int FillOrderedProfile(const char* reason,
+ char raw_buffer[],
+ int buffer_size);
private:
#ifdef USE_DEEP_HEAP_PROFILE
@@ -134,13 +136,13 @@ class DeepHeapProfile {
void Clear();
void Write(RawFD fd);
- bool AppendChar(char v);
- bool AppendString(const char* v, int d);
- bool AppendInt(int v, int d, bool leading_zero);
- bool AppendLong(long v, int d);
- bool AppendUnsignedLong(unsigned long v, int d);
- bool AppendInt64(int64 v, int d);
- bool AppendPtr(uint64 v, int d);
+ bool AppendChar(char value);
+ bool AppendString(const char* value, int width);
+ bool AppendInt(int value, int width, bool leading_zero);
+ bool AppendLong(long value, int width);
+ bool AppendUnsignedLong(unsigned long value, int width);
+ bool AppendInt64(int64 value, int width);
+ bool AppendPtr(uint64 value, int width);
private:
bool ForwardCursor(int appended);
« 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