MCPcopy Create free account
hub / github.com/RetypeOS/parcode / print_ram

Function print_ram

examples/audit.rs:304–312  ·  view source on GitHub ↗
(label: &str, par: usize, bin: usize)

Source from the content-addressed store, hash-verified

302}
303
304fn print_ram(label: &str, par: usize, bin: usize) {
305 let p_mb = par as f64 / 1048576.0;
306 let b_mb = bin as f64 / 1048576.0;
307 let savings = (1.0 - (p_mb / b_mb)) * 100.0;
308 println!(
309 "{:<15} | Parcode: {:>8.2} MB | Bincode: {:>8.2} MB | Savings: {:>5.1}%",
310 label, p_mb, b_mb, savings
311 );
312}
313
314fn print_size(label: &str, par: usize, bin: usize) {
315 let p_mb = par as f64 / 1048576.0;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected