| 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 a2fe805e9199e3193bb809334ad9f5ee92d9bd6d..2ebc865dbb3eb836b19838985052f85e7e17c8f5 100644
|
| --- a/third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h
|
| +++ b/third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h
|
| @@ -118,6 +118,21 @@ typedef void (*AddressVisitor)(void* data, const void* ptr);
|
| PERFTOOLS_DLL_DECL void IterateAllocatedObjects(AddressVisitor callback,
|
| void* data);
|
|
|
| +#if defined(OS_ANDROID)
|
| +// They should be called BEFORE starting heap profiler by HeapProfilerStart.
|
| +//
|
| +// These functions are introduced to use heap profiler in Chrome for Android
|
| +// instead of setting environment variables. Android applications don't have
|
| +// a good way to use environment variables.
|
| +
|
| +// Note that int is used instead of int64 because base/basictypes.h should not
|
| +// be included under gperftools/.
|
| +
|
| +PERFTOOLS_DLL_DECL void HeapProfilerSetTimeInterval(int time_interval);
|
| +PERFTOOLS_DLL_DECL void HeapProfilerSetMmapProfile(bool mmap_profile);
|
| +PERFTOOLS_DLL_DECL void HeapProfilerSetDeepHeapProfile(bool deep_heap_profile);
|
| +#endif // defined(OS_ANDROID)
|
| +
|
| #ifdef __cplusplus
|
| } // extern "C"
|
| #endif
|
|
|