| Index: base/trace_event/memory_dump_manager.cc
|
| diff --git a/base/trace_event/memory_dump_manager.cc b/base/trace_event/memory_dump_manager.cc
|
| index 4b84a8b20c2985803c8adc204a2cf9c505a8e7e7..cb3809360174ad6003131abd61a6659630202399 100644
|
| --- a/base/trace_event/memory_dump_manager.cc
|
| +++ b/base/trace_event/memory_dump_manager.cc
|
| @@ -13,6 +13,7 @@
|
| #include "base/thread_task_runner_handle.h"
|
| #include "base/trace_event/memory_dump_provider.h"
|
| #include "base/trace_event/memory_dump_session_state.h"
|
| +#include "base/trace_event/memory_profiler_allocation_context.h"
|
| #include "base/trace_event/process_memory_dump.h"
|
| #include "base/trace_event/trace_event_argument.h"
|
| #include "build/build_config.h"
|
| @@ -114,6 +115,9 @@ MemoryDumpManager::MemoryDumpManager()
|
| ? CommandLine::ForCurrentProcess()->HasSwitch(
|
| switches::kEnableHeapProfiling)
|
| : false;
|
| +
|
| + if (heap_profiling_enabled_)
|
| + AllocationContextTracker::SetCaptureEnabled(true);
|
| }
|
|
|
| MemoryDumpManager::~MemoryDumpManager() {
|
|
|