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 struct
TraceCategory
struct TraceCategory
An enum-like struct specifying the type of tracing to perform.
Fieldsβ
- βvalue (
Int): The integer value representing the trace category. Used for bitwise operations when determining if profiling is enabled for a specific category.
Implemented traitsβ
AnyType,
Copyable,
Equatable,
ImplicitlyCopyable,
ImplicitlyDeletable,
Intable,
Movable,
RegisterPassable,
TrivialRegisterPassable
comptime membersβ
ASYNCRTβ
comptime ASYNCRT = TraceCategory(Int(1))
Asynchronous runtime trace events.
Kernelβ
comptime Kernel = TraceCategory(Int(3))
Kernel execution trace events.
MAXβ
comptime MAX = TraceCategory(Int(4))
MAX framework trace events.
MEMβ
comptime MEM = TraceCategory(Int(2))
Memory-related trace events.
OTHERβ
comptime OTHER = TraceCategory(Int(0))
Other or uncategorized trace events.
Methodsβ
__eq__β
def __eq__(self, rhs: Self) -> Bool
Compares for equality.
Args:
- βrhs (
Self): The value to compare.
Returns:
Bool: True if they are equal.
__ne__β
def __ne__(self, rhs: Self) -> Bool
Compares for inequality.
Args:
- βrhs (
Self): The value to compare.
Returns:
Bool: True if they are not equal.
__int__β
def __int__(self) -> Int
Converts the trace category to an integer.
Returns:
Int: The integer value of the trace category.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!