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

Unified Diff: chrome/browser/metrics/chrome_metrics_service_client.cc

Issue 985773002: Introducing phased profiling framework (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@write_to_file
Patch Set: isherman@ comments Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/metrics/chrome_metrics_service_client.cc
diff --git a/chrome/browser/metrics/chrome_metrics_service_client.cc b/chrome/browser/metrics/chrome_metrics_service_client.cc
index 8954197117c9b35a4d1ba0d4a5d44bf6d59bf963..57ada918e1dc59756c87c9b7c5a513de3a852c9b 100644
--- a/chrome/browser/metrics/chrome_metrics_service_client.cc
+++ b/chrome/browser/metrics/chrome_metrics_service_client.cc
@@ -378,9 +378,16 @@ void ChromeMetricsServiceClient::OnInitTaskGotGoogleUpdateData() {
}
void ChromeMetricsServiceClient::ReceivedProfilerData(
- const tracked_objects::ProcessDataSnapshot& process_data,
- int process_type) {
- profiler_metrics_provider_->RecordProfilerData(process_data, process_type);
+ const tracked_objects::ProcessDataPhaseSnapshot& process_data_phase,
+ base::ProcessId process_id,
+ content::ProcessType process_type,
+ int profiling_phase,
+ const base::TimeDelta& phase_start,
+ const base::TimeDelta& phase_finish,
+ const metrics::ProfilerEvents& past_events) {
Alexei Svitkine (slow) 2015/03/16 22:00:15 I still think we should group all of these fields
vadimt 2015/03/16 23:09:13 I suggest moving this to the next CL. isherman@ qu
Alexei Svitkine (slow) 2015/03/17 14:53:41 Can you elaborate what you're suggesting? i.e. are
vadimt 2015/03/17 15:12:53 The latter. Added TODO.
+ profiler_metrics_provider_->RecordProfilerData(
+ process_data_phase, process_id, process_type, profiling_phase,
+ phase_start, phase_finish, past_events);
}
void ChromeMetricsServiceClient::FinishedReceivingProfilerData() {

Powered by Google App Engine
This is Rietveld 408576698