(&mut self, label: &'static str)
| 161 | } |
| 162 | |
| 163 | pub fn end(&mut self, label: &'static str) { |
| 164 | if !self.enabled { return; } |
| 165 | if let Some(s) = self.open_cpu.remove(label) { |
| 166 | let us = s.start.elapsed().as_secs_f64() * 1_000_000.0; |
| 167 | self.frame.push(FrameSample { label, cpu_us: us, gpu_us: None }); |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | /// Reserve a pair of GPU timestamp slot indices for the given label. |
| 172 | /// Callers combine the returned indices with `query_set()` to build a |
no test coverage detected