pub fn parse_sysctl_memsize(stdout: &str, fraction: f64) -> Option<f32>Expand description
Parse sysctl -n hw.memsize (total RAM in bytes) into a usable VRAM
figure for Apple unified memory. fraction is the share of unified
memory we treat as GPU-addressable (macOS lets the GPU use most of
it; 0.75 is a conservative, widely-cited figure).