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

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

Issue 14645016: Use system properties for heap profiler in Android instead of environment variables. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed the comment Created 7 years, 8 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/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 c2f65ea025c44919874e2ec83567e8b1eabf7d34..5facea070e81ceda6f682311c4d452dfbb6fd681 100644
--- a/third_party/tcmalloc/chromium/src/deep-heap-profile.h
+++ b/third_party/tcmalloc/chromium/src/deep-heap-profile.h
@@ -37,7 +37,7 @@
#endif
#if defined(__linux__)
-#define DEEP_HEAP_PROFILE 1
+#define USE_DEEP_HEAP_PROFILE 1
#endif
#include "addressmap-inl.h"
@@ -86,7 +86,7 @@ class DeepHeapProfile {
int FillOrderedProfile(char raw_buffer[], int buffer_size);
private:
-#ifdef DEEP_HEAP_PROFILE
+#ifdef USE_DEEP_HEAP_PROFILE
typedef HeapProfileTable::Stats Stats;
typedef HeapProfileTable::Bucket Bucket;
typedef HeapProfileTable::AllocValue AllocValue;
@@ -308,7 +308,7 @@ class DeepHeapProfile {
char* profiler_buffer_; // Buffer we use many times.
DeepBucketTable deep_table_;
-#endif // DEEP_HEAP_PROFILE
+#endif // USE_DEEP_HEAP_PROFILE
HeapProfileTable* heap_profile_;
« no previous file with comments | « third_party/tcmalloc/chromium/src/base/sysinfo.cc ('k') | third_party/tcmalloc/chromium/src/deep-heap-profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698