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

Unified Diff: components/metrics/call_stack_profile_collector.cc

Issue 2438073002: Use movable types for CallStackProfile(s) to remove copying of data. (Closed)
Patch Set: fix tests and build problems Created 4 years, 2 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 cbf466f859a413086348874383abd96fe6d85c62..b7ec42b21cea92aad3b7793e370d389cf864ccd7 100644
--- a/components/metrics/call_stack_profile_collector.cc
+++ b/components/metrics/call_stack_profile_collector.cc
@@ -29,13 +29,12 @@ void CallStackProfileCollector::Create(
void CallStackProfileCollector::Collect(
const CallStackProfileParams& params,
base::TimeTicks start_timestamp,
- const std::vector<CallStackProfile>& profiles) {
+ std::vector<CallStackProfile> profiles) {
if (params.process != expected_process_)
return;
- CallStackProfileMetricsProvider::ReceiveCompletedProfiles(params,
- start_timestamp,
- profiles);
+ CallStackProfileMetricsProvider::ReceiveCompletedProfiles(
+ params, start_timestamp, std::move(profiles));
}
} // namespace metrics

Powered by Google App Engine
This is Rietveld 408576698