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

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

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.cc
diff --git a/third_party/tcmalloc/chromium/src/deep-heap-profile.cc b/third_party/tcmalloc/chromium/src/deep-heap-profile.cc
index f700c6b3117d1be4ed2149516387bd6d360a6fca..566dde1c0503772a505da5b1f9d169bc11abbd26 100644
--- a/third_party/tcmalloc/chromium/src/deep-heap-profile.cc
+++ b/third_party/tcmalloc/chromium/src/deep-heap-profile.cc
@@ -9,7 +9,7 @@
#include "deep-heap-profile.h"
-#ifdef DEEP_HEAP_PROFILE
+#ifdef USE_DEEP_HEAP_PROFILE
#include <algorithm>
#include <fcntl.h>
#include <sys/stat.h>
@@ -912,7 +912,7 @@ void DeepHeapProfile::WriteProcMaps(const char* prefix,
RawWrite(fd, raw_buffer, length);
RawClose(fd);
}
-#else // DEEP_HEAP_PROFILE
+#else // USE_DEEP_HEAP_PROFILE
DeepHeapProfile::DeepHeapProfile(HeapProfileTable* heap_profile,
const char* prefix)
@@ -926,4 +926,4 @@ int DeepHeapProfile::FillOrderedProfile(char raw_buffer[], int buffer_size) {
return heap_profile_->FillOrderedProfile(raw_buffer, buffer_size);
}
-#endif // DEEP_HEAP_PROFILE
+#endif // USE_DEEP_HEAP_PROFILE
« no previous file with comments | « third_party/tcmalloc/chromium/src/deep-heap-profile.h ('k') | third_party/tcmalloc/chromium/src/heap-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698