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

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: Additional 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..a3a1e52dc3581f84ca9b0cc49e8a781c5c198a4a 100644
--- a/chrome/browser/metrics/chrome_metrics_service_client.cc
+++ b/chrome/browser/metrics/chrome_metrics_service_client.cc
@@ -377,10 +377,19 @@ void ChromeMetricsServiceClient::OnInitTaskGotGoogleUpdateData() {
weak_ptr_factory_.GetWeakPtr());
}
+// TODO(vadimt): Consider wrapping params in a struct after the list of params
+// to ReceivedProfilerData settles. crbug/456354.
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) {
+ 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