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

Side by Side Diff: chrome/browser/metrics/chrome_metrics_service_client.h

Issue 2658163002: Merge histograms from providers into StatisticsRecorder for display. (Closed)
Patch Set: rebased Created 3 years, 10 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 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
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
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_
OLDNEW
« no previous file with comments | « base/metrics/statistics_recorder_unittest.cc ('k') | chrome/browser/metrics/chrome_metrics_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698