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

Function bloom_profiler_overlay_text

native/android/src/lib.rs:1964–1979  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1962
1963#[no_mangle]
1964pub extern "C" fn bloom_profiler_overlay_text() -> *const u8 {
1965 let snap = engine().profiler.snapshot();
1966 let mut s = String::with_capacity(snap.len() * 48);
1967 for (label, cpu, gpu) in &snap {
1968 s.push_str(label);
1969 s.push('|');
1970 s.push_str(&format!("{:.2}", cpu));
1971 s.push('|');
1972 match gpu {
1973 Some(g) => s.push_str(&format!("{:.2}", g)),
1974 None => s.push_str("-1"),
1975 }
1976 s.push('\n');
1977 }
1978 alloc_perry_string(&s)
1979}
1980
1981#[no_mangle]
1982pub extern "C" fn bloom_project_screen_y() -> f64 {

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