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_METRICS_PERF_PERF_PROVIDER_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_METRICS_PERF_PERF_PROVIDER_CHROMEOS_H_ |
6 #define CHROME_BROWSER_METRICS_PERF_PERF_PROVIDER_CHROMEOS_H_ | 6 #define CHROME_BROWSER_METRICS_PERF_PERF_PROVIDER_CHROMEOS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // long ago the session restore started. |num_tabs_restored| is the total | 108 // long ago the session restore started. |num_tabs_restored| is the total |
109 // number of tabs being restored. | 109 // number of tabs being restored. |
110 void CollectPerfDataAfterSessionRestore( | 110 void CollectPerfDataAfterSessionRestore( |
111 const base::TimeDelta& time_after_restore, | 111 const base::TimeDelta& time_after_restore, |
112 int num_tabs_restored); | 112 int num_tabs_restored); |
113 | 113 |
114 // Vector of SampledProfile protobufs containing perf profiles. | 114 // Vector of SampledProfile protobufs containing perf profiles. |
115 std::vector<SampledProfile> cached_perf_data_; | 115 std::vector<SampledProfile> cached_perf_data_; |
116 | 116 |
117 // For scheduling collection of perf data. | 117 // For scheduling collection of perf data. |
118 base::OneShotTimer<PerfProvider> timer_; | 118 base::OneShotTimer timer_; |
119 | 119 |
120 // For detecting when changes to the login state. | 120 // For detecting when changes to the login state. |
121 LoginObserver login_observer_; | 121 LoginObserver login_observer_; |
122 | 122 |
123 // Record of the last login time. | 123 // Record of the last login time. |
124 base::TimeTicks login_time_; | 124 base::TimeTicks login_time_; |
125 | 125 |
126 // Record of the start of the upcoming profiling interval. | 126 // Record of the start of the upcoming profiling interval. |
127 base::TimeTicks next_profiling_interval_start_; | 127 base::TimeTicks next_profiling_interval_start_; |
128 | 128 |
(...skipping 10 matching lines...) Expand all Loading... |
139 | 139 |
140 // To pass around the "this" pointer across threads safely. | 140 // To pass around the "this" pointer across threads safely. |
141 base::WeakPtrFactory<PerfProvider> weak_factory_; | 141 base::WeakPtrFactory<PerfProvider> weak_factory_; |
142 | 142 |
143 DISALLOW_COPY_AND_ASSIGN(PerfProvider); | 143 DISALLOW_COPY_AND_ASSIGN(PerfProvider); |
144 }; | 144 }; |
145 | 145 |
146 } // namespace metrics | 146 } // namespace metrics |
147 | 147 |
148 #endif // CHROME_BROWSER_METRICS_PERF_PERF_PROVIDER_CHROMEOS_H_ | 148 #endif // CHROME_BROWSER_METRICS_PERF_PERF_PROVIDER_CHROMEOS_H_ |
OLD | NEW |