()
| 2106 | |
| 2107 | #[no_mangle] |
| 2108 | pub extern "C" fn bloom_profiler_overlay_text() -> *const u8 { |
| 2109 | let snap = engine().profiler.snapshot(); |
| 2110 | let mut s = String::with_capacity(snap.len() * 48); |
| 2111 | for (label, cpu, gpu) in &snap { |
| 2112 | s.push_str(label); |
| 2113 | s.push('|'); |
| 2114 | s.push_str(&format!("{:.2}", cpu)); |
| 2115 | s.push('|'); |
| 2116 | match gpu { |
| 2117 | Some(g) => s.push_str(&format!("{:.2}", g)), |
| 2118 | None => s.push_str("-1"), |
| 2119 | } |
| 2120 | s.push('\n'); |
| 2121 | } |
| 2122 | alloc_perry_string(&s) |
| 2123 | } |
| 2124 | |
| 2125 | // ============================================================ |
| 2126 | // Profiler — CPU phase timings (always available) + GPU timestamps |
nothing calls this directly
no test coverage detected