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 7eb3abae8146517dc7863d49f8c77b9d3fee59ff..5cf08794fb6dd8c67a9a95af8ed820858f349147 100644 |
--- a/components/metrics/child_call_stack_profile_collector.h |
+++ b/components/metrics/child_call_stack_profile_collector.h |
@@ -5,6 +5,8 @@ |
#ifndef COMPONENTS_METRICS_CHILD_CALL_STACK_PROFILE_COLLECTOR_H_ |
#define COMPONENTS_METRICS_CHILD_CALL_STACK_PROFILE_COLLECTOR_H_ |
+#include <vector> |
+ |
#include "base/macros.h" |
#include "base/memory/ref_counted.h" |
#include "base/single_thread_task_runner.h" |
@@ -90,9 +92,14 @@ class ChildCallStackProfileCollector { |
using CallStackProfile = base::StackSamplingProfiler::CallStackProfile; |
- void Collect(const CallStackProfileParams& params, |
- base::TimeTicks start_timestamp, |
- std::vector<CallStackProfile> profiles); |
+ base::Optional<base::StackSamplingProfiler::SamplingParams> Collect( |
+ const CallStackProfileParams& params, |
+ base::TimeTicks start_timestamp, |
+ std::vector<CallStackProfile> profiles); |
+ |
+ void CollectImpl(const CallStackProfileParams& params, |
+ base::TimeTicks start_timestamp, |
+ 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 |