Skip to main content

timing

Function timing 

Source
pub fn timing(world_id: u64) -> Option<WorldTimingSnapshot>
Expand description

Read-only timing snapshot of a world.

Returns None when the world does not exist. The aggregates are taken out of the registry while a vCPU runs (the execution path must never take the registry lock), so a snapshot taken during execution reports the state of the last completed time slice; the in-flight samples are put back when run_vcpu returns.