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

Method avg_frame_cpu_us

native/shared/src/profiler.rs:340–342  ·  view source on GitHub ↗

Average total CPU frame time across the rolling window (sum of all phases). Useful for a single headline number.

(&self)

Source from the content-addressed store, hash-verified

338 /// Average total CPU frame time across the rolling window (sum of
339 /// all phases). Useful for a single headline number.
340 pub fn avg_frame_cpu_us(&self) -> f64 {
341 self.rolling.values().map(|s| s.avg_cpu()).sum()
342 }
343
344 /// Average total GPU frame time where available.
345 pub fn avg_frame_gpu_us(&self) -> f64 {

Calls 1

avg_cpuMethod · 0.80

Tested by

no test coverage detected