template <class T>

class FlowImpl

Defined at line 29 of file ../../third_party/perfetto/include/perfetto/tracing/track_event_args.h

A helper to add |flow_id| as a non-terminating flow id to TRACE_EVENT

inline: TRACE_EVENT(..., perfetto::Flow::ProcessScoped(42));

Public Methods

FlowImpl<Traits> ProcessScoped (uint64_t flow_id)

|flow_id| which is local within a given process (e.g. atomic counter xor'ed

with feature-specific value). This value is xor'ed with Perfetto's internal

process track id to attempt to ensure that it's globally-unique.

Defined at line 34 of file ../../third_party/perfetto/include/perfetto/tracing/track_event_args.h

FlowImpl<Traits> ProcessScoped (uint64_t flow_id, const char * named_scope)

Same as above, but combines the flow id with an extra `named_scope`'s hash.

Defined at line 40 of file ../../third_party/perfetto/include/perfetto/tracing/track_event_args.h

FlowImpl<Traits> FromPointer (const void * ptr)

Same as above, but construct an id from a pointer.

NOTE: After the object is destroyed, the value of |ptr| can be reused for a

different object (in particular if the object is allocated on a stack).

Please ensure that you emit a trace event with the flow id of

perfetto::TerminatingFlow::FromPointer(this) from the destructor of the

object to avoid accidental conflicts.

Defined at line 52 of file ../../third_party/perfetto/include/perfetto/tracing/track_event_args.h

FlowImpl<Traits> FromPointer (const void * ptr, const char * named_scope)

Same as above, but combines the flow id with an extra `named_scope`'s hash.

Defined at line 57 of file ../../third_party/perfetto/include/perfetto/tracing/track_event_args.h

FlowImpl<Traits> Global (uint64_t flow_id)

Add the |flow_id|. The caller is responsible for ensuring that it's

globally-unique (e.g. by generating a random value). This should be used

only for flow events which cross the process boundary (e.g. IPCs).

Defined at line 66 of file ../../third_party/perfetto/include/perfetto/tracing/track_event_args.h

FlowImpl<Traits> Global (uint64_t flow_id, const char * named_scope)

Same as above, but combines the flow id with an extra `named_scope`'s hash.

Defined at line 71 of file ../../third_party/perfetto/include/perfetto/tracing/track_event_args.h

void FlowImpl<T> (uint64_t flow_id)

TODO(altimin): Remove once converting a single usage in Chromium.

Defined at line 78 of file ../../third_party/perfetto/include/perfetto/tracing/track_event_args.h

void operator() (EventContext & ctx)

Defined at line 80 of file ../../third_party/perfetto/include/perfetto/tracing/track_event_args.h