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

Method begin

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

Source from the content-addressed store, hash-verified

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; }

Callers 3

begin_frameMethod · 0.80
end_frameMethod · 0.80
end_frame_with_sceneMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected