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

Function bloom_profiler_overlay_text

native/macos/src/lib.rs:1412–1427  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1410
1411#[no_mangle]
1412pub extern "C" fn bloom_profiler_overlay_text() -> *const u8 {
1413 let snap = engine().profiler.snapshot();
1414 let mut s = String::with_capacity(snap.len() * 48);
1415 for (label, cpu, gpu) in &snap {
1416 s.push_str(label);
1417 s.push('|');
1418 s.push_str(&format!("{:.2}", cpu));
1419 s.push('|');
1420 match gpu {
1421 Some(g) => s.push_str(&format!("{:.2}", g)),
1422 None => s.push_str("-1"),
1423 }
1424 s.push('\n');
1425 }
1426 alloc_perry_string(&s)
1427}
1428
1429// ============================================================
1430// Models

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