class Delegate
Defined at line 117 of file ../../third_party/perfetto/include/perfetto/tracing/track_event_state_tracker.h
Interface used by the tracker to access tracing session and sequence state
and to report parsed track events.
Public Methods
void ~Delegate ()
SessionState * GetSessionState ()
Called to retrieve the session-global state shared by all sequences. The
returned pointer must remain valid (locked) throughout the call to
|ProcessTracePacket|.
void OnTrackUpdated (Track & )
Called when the metadata (e.g., name) for a track changes. |Track| can be
modified by the callback to attach user data.
void OnTrackEvent (const Track & , const ParsedTrackEvent & )
If the packet given to |ProcessTracePacket| contains a track event, this
method is called to report the properties of that event. Note that memory
pointers in |TrackEvent| will only be valid during this call.