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

Method record_queue_depth

nodedb/src/data/io/io_metrics.rs:83–85  ·  view source on GitHub ↗
(&self, tier: usize, depth: u64)

Source from the content-addressed store, hash-verified

81 /// Call this each `tick()` after draining all priority queues.
82 #[inline]
83 pub fn record_queue_depth(&self, tier: usize, depth: u64) {
84 self.queue_depth[tier].store(depth, Ordering::Relaxed);
85 }
86
87 /// Record one completed IO submission for `tier` with wait time `wait_ns`.
88 ///

Callers 1

tickMethod · 0.80

Calls 1

storeMethod · 0.45

Tested by

no test coverage detected