(&mut self, label: &'static str)
| 156 | pub fn has_gpu(&self) -> bool { self.gpu_enabled } |
| 157 | |
| 158 | pub fn begin(&mut self, label: &'static str) { |
| 159 | if !self.enabled { return; } |
| 160 | self.open_cpu.insert(label, CpuSample { start: Instant::now() }); |
| 161 | } |
| 162 | |
| 163 | pub fn end(&mut self, label: &'static str) { |
| 164 | if !self.enabled { return; } |
no outgoing calls
no test coverage detected