()
| 2725 | |
| 2726 | #[no_mangle] |
| 2727 | pub 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 | // ============================================================ |
nothing calls this directly
no test coverage detected