MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / max_utilization

Method max_utilization

nodedb/src/bridge/dispatch.rs:421–427  ·  view source on GitHub ↗

Maximum SPSC request queue utilization across all cores (0-100).

(&self)

Source from the content-addressed store, hash-verified

419
420 /// Maximum SPSC request queue utilization across all cores (0-100).
421 pub fn max_utilization(&self) -> u8 {
422 self.cores
423 .iter()
424 .map(|c| c.request_tx.utilization())
425 .max()
426 .unwrap_or(0)
427 }
428
429 /// Per-database pressure state for the given core (used by metrics exporters).
430 ///

Callers 1

max_spsc_utilizationMethod · 0.80

Calls 2

iterMethod · 0.45
utilizationMethod · 0.45

Tested by

no test coverage detected