| 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 73f31f743f6146a6108b75c2ef0b2f8a821e4e4e..7dad86d47407d45a12a0b218341fec89e68f920b 100644
|
| --- a/third_party/tcmalloc/chromium/src/heap-profiler.cc
|
| +++ b/third_party/tcmalloc/chromium/src/heap-profiler.cc
|
| @@ -601,6 +601,30 @@ extern "C" void HeapProfilerDump(const char* reason) {
|
| }
|
| }
|
|
|
| +extern "C" void HeapProfilerMarkBaseline() {
|
| + SpinLockHolder l(&heap_lock);
|
| +
|
| + if (!is_on) return;
|
| +
|
| + heap_profile->MarkAllAsIgnored();
|
| +}
|
| +
|
| +extern "C" void HeapProfilerMarkInteresting() {
|
| + SpinLockHolder l(&heap_lock);
|
| +
|
| + if (!is_on) return;
|
| +
|
| + heap_profile->MarkAllAsLive();
|
| +}
|
| +
|
| +extern "C" void HeapProfilerDumpAliveObjects(const char* filename) {
|
| + SpinLockHolder l(&heap_lock);
|
| +
|
| + if (!is_on) return;
|
| +
|
| + heap_profile->DumpLiveObjects(filename);
|
| +}
|
| +
|
| //----------------------------------------------------------------------
|
| // Initialization/finalization code
|
| //----------------------------------------------------------------------
|
|
|