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

Unified Diff: components/metrics/call_stack_profile_collector.cc

Issue 2927593002: Make stack sampling profiler sample beyond startup. (Closed)
Patch Set: Address comments. Created 3 years, 5 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: components/metrics/call_stack_profile_collector.cc
diff --git a/components/metrics/call_stack_profile_collector.cc b/components/metrics/call_stack_profile_collector.cc
index 4cdd9ec83485819cc4959c75c2f7faf2c58fa987..a4c330acbf6ae70f08cc169e8e7780adae3ed32e 100644
--- a/components/metrics/call_stack_profile_collector.cc
+++ b/components/metrics/call_stack_profile_collector.cc
@@ -36,8 +36,10 @@ void CallStackProfileCollector::Collect(
if (params.process != expected_process_)
return;
+ CallStackProfileParams params_copy = params;
+ params_copy.start_timestamp = start_timestamp;
CallStackProfileMetricsProvider::ReceiveCompletedProfiles(
- params, start_timestamp, std::move(profiles));
+ &params_copy, std::move(profiles));
}
} // namespace metrics

Powered by Google App Engine
This is Rietveld 408576698