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/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 Loading... |
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 |
OLD | NEW |