#include "src/tracing/internal/tracing_muxer_fake.h"
namespace perfetto {
namespace internal {
namespace {
PERFETTO_NORETURN void FailUninitialized() { … }
}
#if PERFETTO_HAS_NO_DESTROY()
PERFETTO_NO_DESTROY TracingMuxerFake::FakePlatform
TracingMuxerFake::FakePlatform::instance{ … };
PERFETTO_NO_DESTROY TracingMuxerFake TracingMuxerFake::instance{ … };
#endif
TracingMuxerFake::~TracingMuxerFake() = default;
TracingMuxerFake::FakePlatform::~FakePlatform() = default;
Platform::ThreadLocalObject*
TracingMuxerFake::FakePlatform::GetOrCreateThreadLocalObject() { … }
std::unique_ptr<base::TaskRunner>
TracingMuxerFake::FakePlatform::CreateTaskRunner(const CreateTaskRunnerArgs&) { … }
std::string TracingMuxerFake::FakePlatform::GetCurrentProcessName() { … }
bool TracingMuxerFake::RegisterDataSource(const DataSourceDescriptor&,
DataSourceFactory,
DataSourceParams,
bool,
DataSourceStaticState*) { … }
void TracingMuxerFake::UpdateDataSourceDescriptor(
const DataSourceDescriptor&,
const DataSourceStaticState*) { … }
std::unique_ptr<TraceWriterBase> TracingMuxerFake::CreateTraceWriter(
DataSourceStaticState*,
uint32_t,
DataSourceState*,
BufferExhaustedPolicy) { … }
void TracingMuxerFake::DestroyStoppedTraceWritersForCurrentThread() { … }
void TracingMuxerFake::RegisterInterceptor(
const InterceptorDescriptor&,
InterceptorFactory,
InterceptorBase::TLSFactory,
InterceptorBase::TracePacketCallback) { … }
void TracingMuxerFake::ActivateTriggers(const std::vector<std::string>&,
uint32_t) { … }
}
}