()
| 1410 | |
| 1411 | #[no_mangle] |
| 1412 | pub 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 |
nothing calls this directly
no test coverage detected