#include "services/tracing/public/cpp/traced_process_impl.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/no_destructor.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "services/tracing/public/cpp/base_agent.h"
#include "services/tracing/public/cpp/perfetto/producer_client.h"
#include "services/tracing/public/cpp/trace_event_agent.h"
#include "services/tracing/public/mojom/constants.mojom.h"
namespace tracing {
TracedProcessImpl* TracedProcessImpl::GetInstance() { … }
TracedProcessImpl::TracedProcessImpl() { … }
TracedProcessImpl::~TracedProcessImpl() = default;
void TracedProcessImpl::ResetTracedProcessReceiver() { … }
void TracedProcessImpl::OnTracedProcessRequest(
mojo::PendingReceiver<mojom::TracedProcess> receiver) { … }
mojo::Remote<mojom::SystemTracingService>&
TracedProcessImpl::system_tracing_service() { … }
void TracedProcessImpl::EnableSystemTracingService(
mojo::PendingRemote<mojom::SystemTracingService> remote) { … }
void TracedProcessImpl::SetTaskRunner(
scoped_refptr<base::SequencedTaskRunner> task_runner) { … }
void TracedProcessImpl::RegisterAgent(BaseAgent* agent) { … }
void TracedProcessImpl::UnregisterAgent(BaseAgent* agent) { … }
void TracedProcessImpl::ConnectToTracingService(
mojom::ConnectToTracingRequestPtr request,
ConnectToTracingServiceCallback callback) { … }
void TracedProcessImpl::GetCategories(std::set<std::string>* category_set) { … }
}