Skip to main content

Mojo module

tracing

Provides tracing utilities.

Aliases

log

alias log = Logger[Level(30)](FileDescriptor(2), "[OP] ", False)

Structs

  • Trace: An object representing a specific trace.
  • TraceCategory: An enum-like struct specifying the type of tracing to perform.
  • TraceLevel: An enum-like struct specifying the level of tracing to perform.

Functions

  • get_current_trace_id: Returns the id of last created trace entry on the current thread.
  • get_safe_task_id: Safely extract task_id from DeviceContextPtr, returning None if null/invalid.
  • is_profiling_disabled: Returns False if the profiling is enabled for that specific type and level and True otherwise.
  • is_profiling_enabled: Returns True if the profiling is enabled for that specific type and level and False otherwise.
  • trace_arg: Helper to stringify the type and shape of a kernel argument for tracing.

Was this page helpful?