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

Side by Side Diff: components/metrics/call_stack_profile_collector.cc

Issue 2927593002: Make stack sampling profiler sample beyond startup. (Closed)
Patch Set: rebase + PROFILER_TEST_F Created 3 years, 6 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 unified diff | Download patch
OLDNEW
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
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 &params_copy, std::move(profiles));
41 } 43 }
42 44
43 } // namespace metrics 45 } // namespace metrics
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698