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

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

Issue 295583002: tcmalloc: Honor HEAPPROFILE envvar only in profiling=1 builds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « third_party/tcmalloc/README.chromium ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/tcmalloc/chromium/src/heap-profiler.cc
diff --git a/third_party/tcmalloc/chromium/src/heap-profiler.cc b/third_party/tcmalloc/chromium/src/heap-profiler.cc
index da4ed49bea7cc701bd4857d60710395ecac64861..46a81a499037487b69315b80c0105840a2eac1fa 100644
--- a/third_party/tcmalloc/chromium/src/heap-profiler.cc
+++ b/third_party/tcmalloc/chromium/src/heap-profiler.cc
@@ -662,7 +662,7 @@ extern "C" void HeapProfilerDumpAliveObjects(const char* filename) {
//----------------------------------------------------------------------
// Initialization/finalization code
//----------------------------------------------------------------------
-
+#if defined(ENABLE_PROFILING)
// Initialization code
static void HeapProfilerInit() {
// Everything after this point is for setting up the profiler based on envvar
@@ -693,3 +693,4 @@ struct HeapProfileEndWriter {
static const TCMallocGuard tcmalloc_initializer;
REGISTER_MODULE_INITIALIZER(heapprofiler, HeapProfilerInit());
static HeapProfileEndWriter heap_profile_end_writer;
+#endif // defined(ENABLE_PROFILING)
« no previous file with comments | « third_party/tcmalloc/README.chromium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698