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_tracker.h" | 5 #include "base/debug/activity_tracker.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> |
| 9 #include <utility> |
8 | 10 |
9 #include "base/debug/stack_trace.h" | 11 #include "base/debug/stack_trace.h" |
10 #include "base/files/file.h" | 12 #include "base/files/file.h" |
11 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
12 #include "base/files/memory_mapped_file.h" | 14 #include "base/files/memory_mapped_file.h" |
13 #include "base/logging.h" | 15 #include "base/logging.h" |
14 #include "base/memory/ptr_util.h" | 16 #include "base/memory/ptr_util.h" |
15 #include "base/memory/ptr_util.h" | |
16 #include "base/metrics/field_trial.h" | 17 #include "base/metrics/field_trial.h" |
17 #include "base/metrics/histogram_macros.h" | 18 #include "base/metrics/histogram_macros.h" |
18 #include "base/pending_task.h" | 19 #include "base/pending_task.h" |
19 #include "base/process/process.h" | 20 #include "base/process/process.h" |
20 #include "base/process/process_handle.h" | 21 #include "base/process/process_handle.h" |
21 #include "base/stl_util.h" | 22 #include "base/stl_util.h" |
22 #include "base/strings/string_util.h" | 23 #include "base/strings/string_util.h" |
23 #include "base/threading/platform_thread.h" | 24 #include "base/threading/platform_thread.h" |
24 | 25 |
25 namespace base { | 26 namespace base { |
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1209 : GlobalActivityTracker::ScopedThreadActivity( | 1210 : GlobalActivityTracker::ScopedThreadActivity( |
1210 program_counter, | 1211 program_counter, |
1211 nullptr, | 1212 nullptr, |
1212 Activity::ACT_PROCESS_WAIT, | 1213 Activity::ACT_PROCESS_WAIT, |
1213 ActivityData::ForProcess(process->Pid()), | 1214 ActivityData::ForProcess(process->Pid()), |
1214 /*lock_allowed=*/true) {} | 1215 /*lock_allowed=*/true) {} |
1215 #endif | 1216 #endif |
1216 | 1217 |
1217 } // namespace debug | 1218 } // namespace debug |
1218 } // namespace base | 1219 } // namespace base |
OLD | NEW |