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

Function bloom_profiler_overlay_text

native/linux/src/lib.rs:2727–2742  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2725
2726#[no_mangle]
2727pub extern "C" fn bloom_profiler_overlay_text() -> *const u8 {
2728 let snap = engine().profiler.snapshot();
2729 let mut s = String::with_capacity(snap.len() * 48);
2730 for (label, cpu, gpu) in &snap {
2731 s.push_str(label);
2732 s.push('|');
2733 s.push_str(&format!("{:.2}", cpu));
2734 s.push('|');
2735 match gpu {
2736 Some(g) => s.push_str(&format!("{:.2}", g)),
2737 None => s.push_str("-1"),
2738 }
2739 s.push('\n');
2740 }
2741 alloc_perry_string(&s)
2742}
2743
2744
2745// ============================================================

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