#include "perfetto/tracing/data_source.h"
#include "perfetto/base/logging.h"
#include "protos/perfetto/config/data_source_config.gen.h"
namespace perfetto {
DataSourceBase::StopArgs::~StopArgs() = default;
DataSourceBase::FlushArgs::~FlushArgs() = default;
DataSourceBase::~DataSourceBase() = default;
void DataSourceBase::OnSetup(const SetupArgs&) { … }
void DataSourceBase::OnStart(const StartArgs&) { … }
void DataSourceBase::OnStop(const StopArgs&) { … }
void DataSourceBase::WillClearIncrementalState(
const ClearIncrementalStateArgs&) { … }
void DataSourceBase::OnFlush(const FlushArgs&) { … }
bool DataSourceBase::CanAdoptStartupSession(
const DataSourceConfig& startup_config,
const DataSourceConfig& service_config) { … }
namespace internal {
void DataSourceType::PopulateTlsInst(
DataSourceInstanceThreadLocalState* tls_inst,
DataSourceState* instance_state,
uint32_t instance_index) { … }
}
}