class Tracee

Defined at line 32 of file ../../src/performance/trace_manager/tracee.h

Public Methods

void Tracee (async::Executor & executor, std::shared_ptr<const BufferForwarder> output, const TraceProviderBundle * bundle)

Defined at line 29 of file ../../src/performance/trace_manager/tracee.cc

bool operator== (TraceProviderBundle * bundle)

Defined at line 37 of file ../../src/performance/trace_manager/tracee.cc

bool Initialize (std::vector<std::string> categories, size_t buffer_size, fuchsia_tracing::BufferingMode buffering_mode, StartCallback start_callback, StopCallback stop_callback, TerminateCallback terminate_callback, AlertCallback alert_callback)

Defined at line 39 of file ../../src/performance/trace_manager/tracee.cc

void ~Tracee ()

Defined at line 60 of file ../../src/performance/trace_manager/tracee.h

void Terminate ()

Defined at line 119 of file ../../src/performance/trace_manager/tracee.cc

void Start (fuchsia_tracing::BufferDisposition buffer_disposition, const std::vector<std::string> & additional_categories)

Defined at line 130 of file ../../src/performance/trace_manager/tracee.cc

void Stop (bool write_results)

Defined at line 150 of file ../../src/performance/trace_manager/tracee.cc

std::optional<fuchsia_tracing_controller::ProviderStats> GetStats ()

Defined at line 326 of file ../../src/performance/trace_manager/tracee.cc

TransferStatus TransferRecords ()

Transfer all collected records to output_.

Defined at line 305 of file ../../src/performance/trace_manager/tracee.cc

void TransferBuffer (uint32_t wrapped_count, uint64_t durable_data_end)

Save the buffer specified by |wrapped_count|.

This is a callback from the TraceSession loop.

That's why the result is void and not Tracee::TransferStatus.

Defined at line 333 of file ../../src/performance/trace_manager/tracee.cc

bool DoTransferBuffer (uint32_t wrapped_count, uint64_t durable_data_end)

Helper for |TransferBuffer()|, returns true on success.

const TraceProviderBundle * bundle ()

Defined at line 89 of file ../../src/performance/trace_manager/tracee.h

State state ()

Defined at line 90 of file ../../src/performance/trace_manager/tracee.h

bool was_started ()

Defined at line 91 of file ../../src/performance/trace_manager/tracee.h

bool results_written ()

Defined at line 92 of file ../../src/performance/trace_manager/tracee.h

Enumerations

enum class State : uint8_t
Name Value Comments
kReady 0

The provider is ready to be initialized.

kInitialized 1

The provider has been initialized.

kStarting 2

The provider was asked to start.

kStarted 3

The provider is started and tracing.

kStopping 4

The provider is being stopped right now.

kStopped 5

The provider is stopped.

kTerminating 6

The provider is terminating.

kTerminated 7

The provider is terminated.

Defined at line 34 of file ../../src/performance/trace_manager/tracee.h