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

Unified Diff: components/metrics/call_stack_profile_collector.cc

Issue 2927593002: Make stack sampling profiler sample beyond startup. (Closed)
Patch Set: Move sampling params to call_stack_profile_metrics_provider.cc; make some things constexpr to avoid… 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..1beb439e149eb3360bde752e8c300020f39f85b1 100644
--- a/components/metrics/call_stack_profile_collector.cc
+++ b/components/metrics/call_stack_profile_collector.cc
@@ -5,6 +5,7 @@
#include "components/metrics/call_stack_profile_collector.h"
#include <utility>
+#include <vector>
#include "base/memory/ptr_util.h"
#include "components/metrics/call_stack_profile_metrics_provider.h"
@@ -36,8 +37,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