class CounterTrack

Defined at line 316 of file ../../third_party/perfetto/include/perfetto/tracing/track.h

A track for recording counter values with the TRACE_COUNTER macro. Counter

tracks can optionally be given units and other metadata. See

/protos/perfetto/trace/track_event/counter_descriptor.proto for details.

Public Methods

void CounterTrack (StaticString name, Track parent)

|name| must outlive this object.

Defined at line 327 of file ../../third_party/perfetto/include/perfetto/tracing/track.h

void CounterTrack (StaticString name, uint64_t id, Track parent)

Defined at line 336 of file ../../third_party/perfetto/include/perfetto/tracing/track.h

void CounterTrack (DynamicString name, Track parent)

Defined at line 346 of file ../../third_party/perfetto/include/perfetto/tracing/track.h

void CounterTrack (DynamicString name, uint64_t id, Track parent)

Defined at line 354 of file ../../third_party/perfetto/include/perfetto/tracing/track.h

template <class TrackEventName>
void CounterTrack (TrackEventName && name, const char * unit_name, Track parent)

|unit_name| is a free-form description of the unit used by this counter. It

must outlive this object.

Defined at line 367 of file ../../third_party/perfetto/include/perfetto/tracing/track.h

template <class TrackEventName>
void CounterTrack (TrackEventName && name, Unit unit, Track parent)

Defined at line 378 of file ../../third_party/perfetto/include/perfetto/tracing/track.h

template <class TrackEventName>
CounterTrack Global (TrackEventName && name, const char * unit_name)

Defined at line 388 of file ../../third_party/perfetto/include/perfetto/tracing/track.h

template <class TrackEventName>
CounterTrack Global (TrackEventName && name, Unit unit)

Defined at line 394 of file ../../third_party/perfetto/include/perfetto/tracing/track.h

template <class TrackEventName>
CounterTrack Global (TrackEventName && name)

Defined at line 399 of file ../../third_party/perfetto/include/perfetto/tracing/track.h

void Serialize (protos::pbzero::TrackDescriptor * )
protos::gen::TrackDescriptor Serialize ()
CounterTrack set_unit (Unit unit)

Defined at line 403 of file ../../third_party/perfetto/include/perfetto/tracing/track.h

CounterTrack set_type (CounterType type)

Defined at line 409 of file ../../third_party/perfetto/include/perfetto/tracing/track.h

CounterTrack set_unit_name (const char * unit_name)

Defined at line 415 of file ../../third_party/perfetto/include/perfetto/tracing/track.h

CounterTrack set_unit_multiplier (int64_t unit_multiplier)

Defined at line 421 of file ../../third_party/perfetto/include/perfetto/tracing/track.h

CounterTrack set_category (const char * category)

Defined at line 427 of file ../../third_party/perfetto/include/perfetto/tracing/track.h

CounterTrack set_is_incremental (bool is_incremental)

Defined at line 433 of file ../../third_party/perfetto/include/perfetto/tracing/track.h

bool is_incremental ()

Defined at line 439 of file ../../third_party/perfetto/include/perfetto/tracing/track.h