()
| 1962 | |
| 1963 | #[no_mangle] |
| 1964 | pub 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] |
| 1982 | pub extern "C" fn bloom_project_screen_y() -> f64 { |
nothing calls this directly
no test coverage detected