#include "components/metrics/call_stacks/child_call_stack_profile_collector.h"
#include <utility>
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/synchronization/lock.h"
#include "base/task/single_thread_task_runner.h"
#include "base/time/time.h"
#include "third_party/metrics_proto/sampled_profile.pb.h"
namespace metrics {
ChildCallStackProfileCollector::ProfileState::ProfileState() = default;
ChildCallStackProfileCollector::ProfileState::ProfileState(ProfileState&&) =
default;
ChildCallStackProfileCollector::ProfileState::ProfileState(
base::TimeTicks start_timestamp,
mojom::ProfileType profile_type,
std::string&& profile)
: … { … }
ChildCallStackProfileCollector::ProfileState::~ProfileState() = default;
ChildCallStackProfileCollector::ProfileState&
ChildCallStackProfileCollector::ProfileState::operator=(ProfileState&&) =
default;
ChildCallStackProfileCollector::ChildCallStackProfileCollector() { … }
ChildCallStackProfileCollector::~ChildCallStackProfileCollector() { … }
void ChildCallStackProfileCollector::SetParentProfileCollector(
mojo::PendingRemote<metrics::mojom::CallStackProfileCollector>
parent_collector) { … }
void ChildCallStackProfileCollector::Collect(base::TimeTicks start_timestamp,
SampledProfile profile) { … }
}