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/memory_dump_manager.h" | 5 #include "base/trace_event/memory_dump_manager.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/atomic_sequence_num.h" | 10 #include "base/atomic_sequence_num.h" |
11 #include "base/base_switches.h" | 11 #include "base/base_switches.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/debug/debugging_flags.h" | 14 #include "base/debug/debugging_flags.h" |
15 #include "base/debug/stack_trace.h" | 15 #include "base/debug/stack_trace.h" |
16 #include "base/memory/ptr_util.h" | 16 #include "base/memory/ptr_util.h" |
17 #include "base/thread_task_runner_handle.h" | |
18 #include "base/threading/thread.h" | 17 #include "base/threading/thread.h" |
| 18 #include "base/threading/thread_task_runner_handle.h" |
19 #include "base/trace_event/heap_profiler.h" | 19 #include "base/trace_event/heap_profiler.h" |
20 #include "base/trace_event/heap_profiler_allocation_context_tracker.h" | 20 #include "base/trace_event/heap_profiler_allocation_context_tracker.h" |
21 #include "base/trace_event/heap_profiler_stack_frame_deduplicator.h" | 21 #include "base/trace_event/heap_profiler_stack_frame_deduplicator.h" |
22 #include "base/trace_event/heap_profiler_type_name_deduplicator.h" | 22 #include "base/trace_event/heap_profiler_type_name_deduplicator.h" |
23 #include "base/trace_event/malloc_dump_provider.h" | 23 #include "base/trace_event/malloc_dump_provider.h" |
24 #include "base/trace_event/memory_dump_provider.h" | 24 #include "base/trace_event/memory_dump_provider.h" |
25 #include "base/trace_event/memory_dump_session_state.h" | 25 #include "base/trace_event/memory_dump_session_state.h" |
26 #include "base/trace_event/process_memory_dump.h" | 26 #include "base/trace_event/process_memory_dump.h" |
27 #include "base/trace_event/trace_event.h" | 27 #include "base/trace_event/trace_event.h" |
28 #include "base/trace_event/trace_event_argument.h" | 28 #include "base/trace_event/trace_event_argument.h" |
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
780 if (iter == process_dumps.end()) { | 780 if (iter == process_dumps.end()) { |
781 std::unique_ptr<ProcessMemoryDump> new_pmd( | 781 std::unique_ptr<ProcessMemoryDump> new_pmd( |
782 new ProcessMemoryDump(session_state)); | 782 new ProcessMemoryDump(session_state)); |
783 iter = process_dumps.insert(std::make_pair(pid, std::move(new_pmd))).first; | 783 iter = process_dumps.insert(std::make_pair(pid, std::move(new_pmd))).first; |
784 } | 784 } |
785 return iter->second.get(); | 785 return iter->second.get(); |
786 } | 786 } |
787 | 787 |
788 } // namespace trace_event | 788 } // namespace trace_event |
789 } // namespace base | 789 } // namespace base |
OLD | NEW |