Skip to main content

record_dispatch

Function record_dispatch 

Source
pub fn record_dispatch(entry: DispatchEntry)
Expand description

Append a per-dispatch entry to the global dispatch table.

Called from crate::CommandEncoder::resolve_dispatch_samples inside commit_and_wait_labeled when MLX_PROFILE_DISPATCH=1 is set. The caller has already converted raw GPU ticks to ns using the cached scale factor (see record_clock_pair).