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

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

Issue 14642011: Introduce functions to set options in tcmalloc's heap profiler in Chrome for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated the comments 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
« no previous file with comments | « third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h ('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 512dc7cd33139b22b47c0ad3218aa6b1ec94cdb3..9647c9b6a794a9dc83ee4906da4096d21fa4aafc 100644
--- a/third_party/tcmalloc/chromium/src/heap-profiler.cc
+++ b/third_party/tcmalloc/chromium/src/heap-profiler.cc
@@ -620,6 +620,20 @@ extern "C" void HeapProfilerDumpAliveObjects(const char* filename) {
heap_profile->DumpMarkedObjects(HeapProfileTable::MARK_TWO, filename);
}
+#if defined(OS_ANDROID)
+extern "C" void HeapProfilerSetTimeInterval(int time_interval) {
+ FLAGS_heap_profile_time_interval = static_cast<int64>(time_interval);
+}
+
+extern "C" void HeapProfilerSetMmapProfile(bool mmap_profile) {
+ FLAGS_mmap_profile = mmap_profile;
+}
+
+extern "C" void HeapProfilerSetDeepHeapProfile(bool deep_heap_profile) {
+ FLAGS_deep_heap_profile = deep_heap_profile;
+}
+#endif // defined(OS_ANDROID)
+
//----------------------------------------------------------------------
// Initialization/finalization code
//----------------------------------------------------------------------
« no previous file with comments | « third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698