OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/child/web_memory_dump_provider_adapter.h" | 5 #include "content/child/web_memory_dump_provider_adapter.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
8 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
9 #include "base/synchronization/lock.h" | 11 #include "base/synchronization/lock.h" |
10 #include "base/trace_event/heap_profiler_allocation_context.h" | 12 #include "base/trace_event/heap_profiler_allocation_context.h" |
11 #include "base/trace_event/heap_profiler_allocation_context_tracker.h" | 13 #include "base/trace_event/heap_profiler_allocation_context_tracker.h" |
12 #include "base/trace_event/heap_profiler_allocation_register.h" | 14 #include "base/trace_event/heap_profiler_allocation_register.h" |
13 #include "base/trace_event/heap_profiler_heap_dump_writer.h" | 15 #include "base/trace_event/heap_profiler_heap_dump_writer.h" |
14 #include "base/trace_event/process_memory_dump.h" | 16 #include "base/trace_event/process_memory_dump.h" |
15 #include "base/trace_event/trace_event_argument.h" | 17 #include "base/trace_event/trace_event_argument.h" |
16 #include "base/trace_event/trace_event_memory_overhead.h" | 18 #include "base/trace_event/trace_event_memory_overhead.h" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 web_memory_dump_provider_->onHeapProfilingEnabled(ReportAllocation, | 122 web_memory_dump_provider_->onHeapProfilingEnabled(ReportAllocation, |
121 ReportFree); | 123 ReportFree); |
122 } else { | 124 } else { |
123 web_memory_dump_provider_->onHeapProfilingEnabled(nullptr, nullptr); | 125 web_memory_dump_provider_->onHeapProfilingEnabled(nullptr, nullptr); |
124 } | 126 } |
125 | 127 |
126 g_heap_profiling_enabled = enabled; | 128 g_heap_profiling_enabled = enabled; |
127 } | 129 } |
128 | 130 |
129 } // namespace content | 131 } // namespace content |
OLD | NEW |