Skip to main content
Log in

Mojo module

tracing

Provides tracing utilities.

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.
  • 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.