For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo struct
WaitCounts
struct WaitCounts
Per-phase wait/barrier counts, populated by repeated add calls.
Walk a phase with a comptime for and call counts.add(entry, i, n)
per entry; n_combined tracks vm waits whose immediate successor
is an lgkm wait (i.e., would coalesce into one
s_waitcnt vmcnt(N) lgkmcnt(M) instruction at codegen time).
Fieldsβ
- βn_vm (
Int): Number ofs_waitcnt vmcntwaits seen in the phase. - βn_lgkm (
Int): Number ofs_waitcnt lgkmcntwaits seen in the phase. - βn_combined (
Int): Number of vm waits whose successor is an lgkm wait (codegen coalesces these into a singles_waitcnt vmcnt(N) lgkmcnt(M)). - βn_barrier (
Int): Number ofs_barrierinstructions in the phase. - βn_sched_barrier (
Int): Number ofs_sched_group_barrierhints in the phase.
Implemented traitsβ
AnyType,
Copyable,
ImplicitlyDestructible,
Movable
Methodsβ
emptyβ
static empty() -> Self
Returns a WaitCounts with every counter set to zero.
Returns:
Self: A zero-initialized WaitCounts.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!