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

Unified Diff: components/metrics/call_stack_profile_metrics_provider.h

Issue 2438073002: Use movable types for CallStackProfile(s) to remove copying of data. (Closed)
Patch Set: addressed review comments by wittman 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_metrics_provider.h
diff --git a/components/metrics/call_stack_profile_metrics_provider.h b/components/metrics/call_stack_profile_metrics_provider.h
index d26000be087ba95a7242dd8c945431f2105b9229..ab13d46d126b6930d715e40143c2b8778eafac96 100644
--- a/components/metrics/call_stack_profile_metrics_provider.h
+++ b/components/metrics/call_stack_profile_metrics_provider.h
@@ -35,7 +35,7 @@ class CallStackProfileMetricsProvider : public MetricsProvider {
static void ReceiveCompletedProfiles(
const CallStackProfileParams& params,
base::TimeTicks start_timestamp,
- const base::StackSamplingProfiler::CallStackProfiles& profiles);
+ base::StackSamplingProfiler::CallStackProfiles profiles);
Alexei Svitkine (slow) 2016/10/24 15:26:22 Passing by non-const ref that results in a copy is
bcwhite 2016/10/24 21:30:30 CallStackProfiles doesn't allow copy so only std::
Alexei Svitkine (slow) 2016/10/25 14:34:04 Sorry, I don't think I'm following. But maybe I do
bcwhite 2016/10/25 15:01:04 std::vector supports both copy and move constructi
Alexei Svitkine (slow) 2016/10/25 15:21:18 OK, so given the above, please add a comment to ea
bcwhite 2016/10/25 17:16:21 Done.
// MetricsProvider:
void OnRecordingEnabled() override;

Powered by Google App Engine
This is Rietveld 408576698