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

Function bloom_profiler_overlay_text

native/windows/src/lib.rs:2108–2123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2106
2107#[no_mangle]
2108pub extern "C" fn bloom_profiler_overlay_text() -> *const u8 {
2109 let snap = engine().profiler.snapshot();
2110 let mut s = String::with_capacity(snap.len() * 48);
2111 for (label, cpu, gpu) in &snap {
2112 s.push_str(label);
2113 s.push('|');
2114 s.push_str(&format!("{:.2}", cpu));
2115 s.push('|');
2116 match gpu {
2117 Some(g) => s.push_str(&format!("{:.2}", g)),
2118 None => s.push_str("-1"),
2119 }
2120 s.push('\n');
2121 }
2122 alloc_perry_string(&s)
2123}
2124
2125// ============================================================
2126// Profiler — CPU phase timings (always available) + GPU timestamps

Callers

nothing calls this directly

Calls 4

snapshotMethod · 0.80
engineFunction · 0.70
alloc_perry_stringFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected