MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/splashsurf / reset

Function reset

splashsurf_lib/src/profiling.rs:307–311  ·  view source on GitHub ↗

Resets the profiling data of all thread local [`Profiler`]s Note that it should be ensure that this is called outside of any scopes. It's safe to also call this function from inside a scope but it can lead to inconsistent profiling data (if a new scope is created afterwards followed by dropping of an old scope).

()

Source from the content-addressed store, hash-verified

305/// this function from inside a scope but it can lead to inconsistent profiling data (if a new scope
306/// is created afterwards followed by dropping of an old scope).
307pub fn reset() {
308 for profiler in PROFILER.iter() {
309 profiler.write().reset();
310 }
311}

Callers

nothing calls this directly

Calls 3

resetMethod · 0.80
writeMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected