Module track_event

Source
Expand description

Nested message and enum types in TrackEvent.

Modules§

legacy_event
Nested message and enum types in LegacyEvent.

Structs§

LegacyEvent
Apart from {category, time, thread time, tid, pid}, other legacy trace event attributes are initially simply proxied for conversion to a JSON trace. We intend to gradually transition these attributes to similar native features in TrackEvent (e.g. async + flow events), or deprecate them without replacement where transition is unsuitable.

Enums§

CounterValueField
A new value for a counter track. |track_uuid| should refer to a track with a CounterDescriptor, and |type| should be TYPE_COUNTER. For a more efficient encoding of counter values that are sampled at the beginning/end of a slice, see |extra_counter_values| and |extra_counter_track_uuids|. Counter values can optionally be encoded in as delta values (positive or negative) on each packet sequence (see CounterIncrementalBase).
NameField
Optional name of the event for its display in trace viewer. May be left unspecified for events with typed arguments.
SourceLocationField
This field is used only if the source location represents the function that executes during this event.
ThreadInstructionCount
Deprecated. Use |extra_counter_values| and |extra_counter_track_uuids| to encode thread instruction count instead.
ThreadTime
Deprecated. Use |extra_counter_values| and |extra_counter_track_uuids| to encode thread time instead.
Timestamp
Deprecated. Use the |timestamp| and |timestamp_clock_id| fields in TracePacket instead.
Type
Type of the TrackEvent (required if |phase| in LegacyEvent is not set).