MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / end

Method end

native/shared/src/profiler.rs:163–169  ·  view source on GitHub ↗
(&mut self, label: &'static str)

Source from the content-addressed store, hash-verified

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

Callers 3

begin_frameMethod · 0.80
end_frameMethod · 0.80
end_frame_with_sceneMethod · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected