#include "perfetto/tracing/internal/interceptor_trace_writer.h"
#include "perfetto/ext/tracing/core/trace_writer.h"
namespace perfetto {
namespace internal {
std::atomic<uint32_t> InterceptorTraceWriter::next_sequence_id_{ … };
InterceptorTraceWriter::InterceptorTraceWriter(
std::unique_ptr<InterceptorBase::ThreadLocalState> tls,
InterceptorBase::TracePacketCallback packet_callback,
DataSourceStaticState* static_state,
uint32_t instance_index)
: … { … }
InterceptorTraceWriter::~InterceptorTraceWriter() = default;
protozero::MessageHandle<protos::pbzero::TracePacket>
InterceptorTraceWriter::NewTracePacket() { … }
void InterceptorTraceWriter::Flush(std::function<void()> callback) { … }
void InterceptorTraceWriter::FinishTracePacket() { … }
uint64_t InterceptorTraceWriter::written() const { … }
}
}