Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: chrome/browser/performance_monitor/performance_monitor.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/notifications/screen_lock_notification_blocker.h ('k') | chrome/browser/power/process_power_collector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698