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

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: Fixing Android compile errors. 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 8a2dc899c780a9aa5e81985881deaa23ae14ce5f..5bda9cab906f1befb9ee7cfabb5524eb172fe049 100644
--- a/chrome/browser/metrics/chrome_metrics_service_client.cc
+++ b/chrome/browser/metrics/chrome_metrics_service_client.cc
@@ -430,10 +430,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,
+ base::TimeDelta phase_start,
+ 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() {
« no previous file with comments | « chrome/browser/metrics/chrome_metrics_service_client.h ('k') | chrome/browser/task_profiler/task_profiler_data_serializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698