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 #ifndef ASH_METRICS_TASK_SWITCH_METRIC_RECORDER_H_ | 5 #ifndef ASH_METRICS_TASK_SWITCH_METRIC_RECORDER_H_ |
6 #define ASH_METRICS_TASK_SWITCH_METRIC_RECORDER_H_ | 6 #define ASH_METRICS_TASK_SWITCH_METRIC_RECORDER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
11 #include "base/containers/scoped_ptr_hash_map.h" | 11 #include "base/containers/scoped_ptr_hash_map.h" |
| 12 #include "base/macros.h" |
12 | 13 |
13 namespace aura { | 14 namespace aura { |
14 class Window; | 15 class Window; |
15 } // namespace aura | 16 } // namespace aura |
16 | 17 |
17 namespace ash { | 18 namespace ash { |
18 | 19 |
19 class TaskSwitchTimeTracker; | 20 class TaskSwitchTimeTracker; |
20 | 21 |
21 // The TaskSwitchMetricsRecorder class records UMA metrics related to task | 22 // The TaskSwitchMetricsRecorder class records UMA metrics related to task |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // |histogram_map_| is populated on demand the first time a | 87 // |histogram_map_| is populated on demand the first time a |
87 // TaskSwitchTimeTracker is needed for a given source. | 88 // TaskSwitchTimeTracker is needed for a given source. |
88 base::ScopedPtrHashMap<int, scoped_ptr<TaskSwitchTimeTracker>> histogram_map_; | 89 base::ScopedPtrHashMap<int, scoped_ptr<TaskSwitchTimeTracker>> histogram_map_; |
89 | 90 |
90 DISALLOW_COPY_AND_ASSIGN(TaskSwitchMetricsRecorder); | 91 DISALLOW_COPY_AND_ASSIGN(TaskSwitchMetricsRecorder); |
91 }; | 92 }; |
92 | 93 |
93 } // namespace ash | 94 } // namespace ash |
94 | 95 |
95 #endif // ASH_METRICS_TASK_SWITCH_METRIC_RECORDER_H_ | 96 #endif // ASH_METRICS_TASK_SWITCH_METRIC_RECORDER_H_ |
OLD | NEW |