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

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

Issue 986503002: components/metrics: Add runtime memory leak detector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix error in leak analyzer logic Created 5 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/gperftools/heap-profiler.h
diff --git a/third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h b/third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h
index 49c78fe4bbac4c9f5302f3b477ada0fa4ebd299f..24131291456482d19bf0a52345a8101cc9afdf9c 100644
--- a/third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h
+++ b/third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h
@@ -131,6 +131,11 @@ typedef void (*AddressVisitor)(void* data, const void* ptr);
PERFTOOLS_DLL_DECL void IterateAllocatedObjects(AddressVisitor callback,
void* data);
+/* Export this dummy function so that the LeakDetector is compiled in. */
+#if defined (ENABLE_LEAK_DETECTOR)
+void LeakDetectorDummy();
+#endif
+
#ifdef __cplusplus
} // extern "C"
#endif

Powered by Google App Engine
This is Rietveld 408576698