Mojo struct
TraceCategory
@register_passable(trivial)
struct TraceCategory
An enum-like struct specifying the type of tracing to perform.
Aliases
OTHER = TraceCategory(0)
:ASYNCRT = TraceCategory(1)
:MEM = TraceCategory(2)
:Kernel = TraceCategory(3)
:MAX = TraceCategory(4)
:
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
,
EqualityComparable
,
ExplicitlyCopyable
,
Intable
,
Movable
,
UnknownDestructibility
Methods
__eq__
__eq__(self, rhs: Self) -> Bool
Compares for equality.
Args:
- rhs (
Self
): The value to compare.
Returns:
True if they are equal.
__ne__
__ne__(self, rhs: Self) -> Bool
Compares for inequality.
Args:
- rhs (
Self
): The value to compare.
Returns:
True if they are not equal.
__is__
__is__(self, rhs: Self) -> Bool
Compares for equality.
Args:
- rhs (
Self
): The value to compare.
Returns:
True if they are equal.
__isnot__
__isnot__(self, rhs: Self) -> Bool
Compares for inequality.
Args:
- rhs (
Self
): The value to compare.
Returns:
True if they are not equal.
__int__
__int__(self) -> Int
Converts the trace category to an integer.
Returns:
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!