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

Method avg_gpu

native/shared/src/profiler.rs:94–98  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

92 sum / self.filled as f64
93 }
94 fn avg_gpu(&self) -> Option<f64> {
95 if !self.has_gpu || self.filled == 0 { return None; }
96 let sum: f64 = self.gpu.iter().take(self.filled).sum();
97 Some(sum / self.filled as f64)
98 }
99}
100
101impl Profiler {

Callers 3

summaryMethod · 0.80
avg_frame_gpu_usMethod · 0.80
snapshotMethod · 0.80

Calls 1

iterMethod · 0.80

Tested by

no test coverage detected