Skip to main content

record

Function record 

Source
pub fn record(label: &str, gpu_ns: u64)
Expand description

Record a labeled GPU duration.

Called by CommandEncoder::commit_and_wait_labeled after reading MTLCommandBuffer.GPUEndTime - GPUStartTime. Lock contention is negligible — the encoder serializes calls anyway.