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 "base/trace_event/malloc_dump_provider.h" | 5 #include "base/trace_event/malloc_dump_provider.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/allocator/allocator_extension.h" | 9 #include "base/allocator/allocator_extension.h" |
10 #include "base/allocator/allocator_shim.h" | 10 #include "base/allocator/allocator_shim.h" |
11 #include "base/allocator/features.h" | 11 #include "base/allocator/features.h" |
| 12 #include "base/debug/profiler.h" |
12 #include "base/trace_event/heap_profiler_allocation_context.h" | 13 #include "base/trace_event/heap_profiler_allocation_context.h" |
13 #include "base/trace_event/heap_profiler_allocation_context_tracker.h" | 14 #include "base/trace_event/heap_profiler_allocation_context_tracker.h" |
14 #include "base/trace_event/heap_profiler_allocation_register.h" | 15 #include "base/trace_event/heap_profiler_allocation_register.h" |
15 #include "base/trace_event/heap_profiler_heap_dump_writer.h" | 16 #include "base/trace_event/heap_profiler_heap_dump_writer.h" |
16 #include "base/trace_event/process_memory_dump.h" | 17 #include "base/trace_event/process_memory_dump.h" |
17 #include "base/trace_event/trace_event_argument.h" | 18 #include "base/trace_event/trace_event_argument.h" |
18 #include "build/build_config.h" | 19 #include "build/build_config.h" |
19 | 20 |
20 #if defined(OS_MACOSX) | 21 #if defined(OS_MACOSX) |
21 #include <malloc/malloc.h> | 22 #include <malloc/malloc.h> |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 tid_dumping_heap_ == PlatformThread::CurrentId()) | 351 tid_dumping_heap_ == PlatformThread::CurrentId()) |
351 return; | 352 return; |
352 AutoLock lock(allocation_register_lock_); | 353 AutoLock lock(allocation_register_lock_); |
353 if (!allocation_register_) | 354 if (!allocation_register_) |
354 return; | 355 return; |
355 allocation_register_->Remove(address); | 356 allocation_register_->Remove(address); |
356 } | 357 } |
357 | 358 |
358 } // namespace trace_event | 359 } // namespace trace_event |
359 } // namespace base | 360 } // namespace base |
OLD | NEW |