| Index: components/metrics/child_call_stack_profile_collector.h
|
| diff --git a/components/metrics/child_call_stack_profile_collector.h b/components/metrics/child_call_stack_profile_collector.h
|
| index adc356d110f55322bd0dbbea304c5fb5d1dbd0f6..63eef6839d8fdb867fa1629bf002ba8cbe14e9d9 100644
|
| --- a/components/metrics/child_call_stack_profile_collector.h
|
| +++ b/components/metrics/child_call_stack_profile_collector.h
|
| @@ -65,28 +65,34 @@ class ChildCallStackProfileCollector {
|
| friend class ChildCallStackProfileCollectorTest;
|
|
|
| // Bundles together a set of collected profiles and the collection state for
|
| - // storage, pending availability of the parent mojo interface.
|
| + // storage, pending availability of the parent mojo interface. |profiles|
|
| + // is not const& because it must be passed with std::move.
|
| struct ProfilesState {
|
| ProfilesState();
|
| - ProfilesState(const ProfilesState&);
|
| + ProfilesState(ProfilesState&&);
|
| ProfilesState(
|
| const CallStackProfileParams& params,
|
| base::TimeTicks start_timestamp,
|
| - const base::StackSamplingProfiler::CallStackProfiles& profiles);
|
| + base::StackSamplingProfiler::CallStackProfiles profiles);
|
| ~ProfilesState();
|
|
|
| + ProfilesState& operator=(ProfilesState&&);
|
| +
|
| CallStackProfileParams params;
|
| base::TimeTicks start_timestamp;
|
|
|
| // The sampled profiles.
|
| base::StackSamplingProfiler::CallStackProfiles profiles;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(ProfilesState);
|
| };
|
|
|
| using CallStackProfile = base::StackSamplingProfiler::CallStackProfile;
|
|
|
| void Collect(const CallStackProfileParams& params,
|
| base::TimeTicks start_timestamp,
|
| - const std::vector<CallStackProfile>& profiles);
|
| + std::vector<CallStackProfile> profiles);
|
|
|
| // This object may be accessed on any thread, including the profiler
|
| // thread. The expected use case for the object is to be created and have
|
|
|