(bytes: Option<u64>)
| 78 | } |
| 79 | |
| 80 | fn memory(bytes: Option<u64>) -> String { |
| 81 | bytes |
| 82 | .map(|value| format!("{:.1} MiB", value as f64 / 1_048_576.0)) |
| 83 | .unwrap_or_else(|| "unavailable".into()) |
| 84 | } |
| 85 | |
| 86 | const HISTORY_SAMPLES: usize = 120; |
| 87 |
nothing calls this directly
no outgoing calls
no test coverage detected