OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/metrics/call_stack_profile_collector.h" | 5 #include "components/metrics/call_stack_profile_collector.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "components/metrics/call_stack_profile_metrics_provider.h" | 10 #include "components/metrics/call_stack_profile_metrics_provider.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 std::move(request)); | 29 std::move(request)); |
30 } | 30 } |
31 | 31 |
32 void CallStackProfileCollector::Collect( | 32 void CallStackProfileCollector::Collect( |
33 const CallStackProfileParams& params, | 33 const CallStackProfileParams& params, |
34 base::TimeTicks start_timestamp, | 34 base::TimeTicks start_timestamp, |
35 std::vector<CallStackProfile> profiles) { | 35 std::vector<CallStackProfile> profiles) { |
36 if (params.process != expected_process_) | 36 if (params.process != expected_process_) |
37 return; | 37 return; |
38 | 38 |
| 39 CallStackProfileParams params_copy = params; |
| 40 params_copy.start_timestamp = start_timestamp; |
39 CallStackProfileMetricsProvider::ReceiveCompletedProfiles( | 41 CallStackProfileMetricsProvider::ReceiveCompletedProfiles( |
40 params, start_timestamp, std::move(profiles)); | 42 ¶ms_copy, std::move(profiles)); |
41 } | 43 } |
42 | 44 |
43 } // namespace metrics | 45 } // namespace metrics |
OLD | NEW |