OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHROME_METRICS_SERVICE_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ |
6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ | 6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 // TrackingSynchronizerObserver: | 115 // TrackingSynchronizerObserver: |
116 void ReceivedProfilerData( | 116 void ReceivedProfilerData( |
117 const metrics::ProfilerDataAttributes& attributes, | 117 const metrics::ProfilerDataAttributes& attributes, |
118 const tracked_objects::ProcessDataPhaseSnapshot& process_data_phase, | 118 const tracked_objects::ProcessDataPhaseSnapshot& process_data_phase, |
119 const metrics::ProfilerEvents& past_profiler_events) override; | 119 const metrics::ProfilerEvents& past_profiler_events) override; |
120 void FinishedReceivingProfilerData() override; | 120 void FinishedReceivingProfilerData() override; |
121 | 121 |
122 // Callbacks for various stages of final log info collection. Do not call | 122 // Callbacks for various stages of final log info collection. Do not call |
123 // these directly. | 123 // these directly. |
124 void CollectFinalHistograms(); | 124 void CollectFinalHistograms(); |
125 void MergeHistogramDeltas(); | |
126 void OnMemoryDetailCollectionDone(); | 125 void OnMemoryDetailCollectionDone(); |
127 void OnHistogramSynchronizationDone(); | 126 void OnHistogramSynchronizationDone(); |
128 | 127 |
129 // Records metrics about the switches present on the command line. | 128 // Records metrics about the switches present on the command line. |
130 void RecordCommandLineMetrics(); | 129 void RecordCommandLineMetrics(); |
131 | 130 |
132 // Registers |this| as an observer for notifications which indicate that a | 131 // Registers |this| as an observer for notifications which indicate that a |
133 // user is performing work. This is useful to allow some features to sleep, | 132 // user is performing work. This is useful to allow some features to sleep, |
134 // until the machine becomes active, such as precluding UMA uploads unless | 133 // until the machine becomes active, such as precluding UMA uploads unless |
135 // there was recent activity. | 134 // there was recent activity. |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 // Whether this client has already uploaded profiler data during this session. | 230 // Whether this client has already uploaded profiler data during this session. |
232 // Profiler data is uploaded at most once per session. | 231 // Profiler data is uploaded at most once per session. |
233 bool has_uploaded_profiler_data_; | 232 bool has_uploaded_profiler_data_; |
234 | 233 |
235 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; | 234 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; |
236 | 235 |
237 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); | 236 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); |
238 }; | 237 }; |
239 | 238 |
240 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ | 239 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ |
OLD | NEW |