MCPcopy Create free account
hub / github.com/acking-you/static_flow / ratio

Function ratio

crates/backend/src/memory_profiler.rs:952–958  ·  view source on GitHub ↗
(value: u64, total: u64)

Source from the content-addressed store, hash-verified

950}
951
952fn ratio(value: u64, total: u64) -> f64 {
953 if total == 0 {
954 0.0
955 } else {
956 value as f64 / total as f64
957 }
958}
959
960fn normalize_top(top: usize) -> usize {
961 top.clamp(1, MAX_TOP_LIMIT)

Callers 3

stacks_reportMethod · 0.85
functions_reportMethod · 0.85
modules_reportMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected