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

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

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase 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 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/child_call_stack_profile_collector.h" 5 #include "components/metrics/child_call_stack_profile_collector.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
11 #include "services/shell/public/cpp/interface_provider.h" 11 #include "services/service_manager/public/cpp/interface_provider.h"
12 12
13 namespace metrics { 13 namespace metrics {
14 14
15 ChildCallStackProfileCollector::ProfilesState::ProfilesState() = default; 15 ChildCallStackProfileCollector::ProfilesState::ProfilesState() = default;
16 ChildCallStackProfileCollector::ProfilesState::ProfilesState( 16 ChildCallStackProfileCollector::ProfilesState::ProfilesState(
17 const ProfilesState&) = default; 17 const ProfilesState&) = default;
18 18
19 ChildCallStackProfileCollector::ProfilesState::ProfilesState( 19 ChildCallStackProfileCollector::ProfilesState::ProfilesState(
20 const CallStackProfileParams& params, 20 const CallStackProfileParams& params,
21 base::TimeTicks start_timestamp, 21 base::TimeTicks start_timestamp,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } 77 }
78 78
79 if (parent_collector_) { 79 if (parent_collector_) {
80 parent_collector_->Collect(params, start_timestamp, profiles); 80 parent_collector_->Collect(params, start_timestamp, profiles);
81 } else if (retain_profiles_) { 81 } else if (retain_profiles_) {
82 profiles_.push_back(ProfilesState(params, start_timestamp, profiles)); 82 profiles_.push_back(ProfilesState(params, start_timestamp, profiles));
83 } 83 }
84 } 84 }
85 85
86 } // namespace metrics 86 } // namespace metrics
OLDNEW
« no previous file with comments | « components/metrics/DEPS ('k') | components/metrics/child_call_stack_profile_collector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698