OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_PERFORMANCE_MONITOR_PERFORMANCE_MONITOR_H_ | 5 #ifndef CHROME_BROWSER_PERFORMANCE_MONITOR_PERFORMANCE_MONITOR_H_ |
6 #define CHROME_BROWSER_PERFORMANCE_MONITOR_PERFORMANCE_MONITOR_H_ | 6 #define CHROME_BROWSER_PERFORMANCE_MONITOR_PERFORMANCE_MONITOR_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 void GatherMetricsMapOnUIThread(); | 60 void GatherMetricsMapOnUIThread(); |
61 void GatherMetricsMapOnIOThread(int current_update_sequence); | 61 void GatherMetricsMapOnIOThread(int current_update_sequence); |
62 | 62 |
63 void UpdateMetricsOnIOThread(int current_update_sequence); | 63 void UpdateMetricsOnIOThread(int current_update_sequence); |
64 void RunTriggersUIThread(); | 64 void RunTriggersUIThread(); |
65 | 65 |
66 // A map of currently running ProcessHandles to ProcessMetrics. | 66 // A map of currently running ProcessHandles to ProcessMetrics. |
67 MetricsMap metrics_map_; | 67 MetricsMap metrics_map_; |
68 | 68 |
69 // The timer to signal PerformanceMonitor to perform its timed collections. | 69 // The timer to signal PerformanceMonitor to perform its timed collections. |
70 base::OneShotTimer<PerformanceMonitor> repeating_timer_; | 70 base::OneShotTimer repeating_timer_; |
71 | 71 |
72 DISALLOW_COPY_AND_ASSIGN(PerformanceMonitor); | 72 DISALLOW_COPY_AND_ASSIGN(PerformanceMonitor); |
73 }; | 73 }; |
74 | 74 |
75 } // namespace performance_monitor | 75 } // namespace performance_monitor |
76 | 76 |
77 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_PERFORMANCE_MONITOR_H_ | 77 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_PERFORMANCE_MONITOR_H_ |
OLD | NEW |