class TrackEventSessionObserver

Defined at line 84 of file ../../third_party/perfetto/include/perfetto/tracing/internal/track_event_internal.h

A callback interface for observing track event tracing sessions starting and

stopping. See TrackEvent::{Add,Remove}SessionObserver. Note that all methods

will be called on an internal Perfetto thread.

Public Methods

void ~TrackEventSessionObserver ()
void OnSetup (const DataSourceBase::SetupArgs & )

Called when a track event tracing session is configured. Note tracing isn't

active yet, so track events emitted here won't be recorded. See

DataSourceBase::OnSetup.

void OnStart (const DataSourceBase::StartArgs & )

Called when a track event tracing session is started. It is possible to

emit track events from this callback.

void OnStop (const DataSourceBase::StopArgs & )

Called when a track event tracing session is stopped. It is still possible

to emit track events from this callback.

void WillClearIncrementalState (const DataSourceBase::ClearIncrementalStateArgs & )

Called when tracing muxer requests to clear incremental state.