IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo trait

DispatchTraceSink

Receives the dispatch-phase events (DISPATCH_*).

copy_and_send_tokens calls stamp only when enabled is True.

Implemented traits​

AnyType, Copyable, Deinitable, ImplicitlyCopyable, Movable, RegisterPassable, TrivialRegisterPassable

comptime members​

enabled​

comptime enabled

Whether events are reported at all; False compiles every site out.

Required methods​

stamp​

def stamp[event: Int](self, index: Int, value: UInt64)

Records one event.

Parameters:

  • ​event (Int): The event (DISPATCH_*).

Args:

  • ​index (Int): The comm warp or publisher the event belongs to (0 for DISPATCH_CTA_INFO).
  • ​value (UInt64): A timestamp, or the packed key or info the event documents.

Was this page helpful?