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

Function bloom_profiler_overlay_text

native/ios/src/lib.rs:2489–2504  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2487
2488#[no_mangle]
2489pub extern "C" fn bloom_profiler_overlay_text() -> *const u8 {
2490 let snap = engine().profiler.snapshot();
2491 let mut s = String::with_capacity(snap.len() * 48);
2492 for (label, cpu, gpu) in &snap {
2493 s.push_str(label);
2494 s.push('|');
2495 s.push_str(&format!("{:.2}", cpu));
2496 s.push('|');
2497 match gpu {
2498 Some(g) => s.push_str(&format!("{:.2}", g)),
2499 None => s.push_str("-1"),
2500 }
2501 s.push('\n');
2502 }
2503 alloc_perry_string(&s)
2504}
2505
2506#[no_mangle]
2507pub extern "C" fn bloom_register_frame_callback(priority: f64, callback: extern "C" fn(f64)) -> f64 {

Callers 1

getProfilerOverlayFunction · 0.50

Calls 4

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

Tested by

no test coverage detected