OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/debug/activity_analyzer.h" | 5 #include "base/debug/activity_analyzer.h" |
6 | 6 |
| 7 #include <utility> |
| 8 |
7 #include "base/files/file.h" | 9 #include "base/files/file.h" |
8 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
9 #include "base/files/memory_mapped_file.h" | 11 #include "base/files/memory_mapped_file.h" |
10 #include "base/logging.h" | 12 #include "base/logging.h" |
11 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
12 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
13 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
14 | 16 |
15 namespace base { | 17 namespace base { |
16 namespace debug { | 18 namespace debug { |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // Add this analyzer to the map of known ones, indexed by a unique thread | 122 // Add this analyzer to the map of known ones, indexed by a unique thread |
121 // identifier. | 123 // identifier. |
122 DCHECK(!base::ContainsKey(analyzers_, analyzer->GetThreadKey())); | 124 DCHECK(!base::ContainsKey(analyzers_, analyzer->GetThreadKey())); |
123 analyzer->allocator_reference_ = ref; | 125 analyzer->allocator_reference_ = ref; |
124 analyzers_[analyzer->GetThreadKey()] = std::move(analyzer); | 126 analyzers_[analyzer->GetThreadKey()] = std::move(analyzer); |
125 } | 127 } |
126 } | 128 } |
127 | 129 |
128 } // namespace debug | 130 } // namespace debug |
129 } // namespace base | 131 } // namespace base |
OLD | NEW |