MCPcopy Create free account
hub / github.com/agenticsorg/lean-agentic / record_spawn

Method record_spawn

runtime/src/primitives.rs:71–74  ·  view source on GitHub ↗
(&mut self, latency_ns: u64)

Source from the content-addressed store, hash-verified

69 }
70
71 pub fn record_spawn(&mut self, latency_ns: u64) {
72 self.agents_spawned += 1;
73 self.avg_spawn_latency_ns = Self::ema(self.avg_spawn_latency_ns, latency_ns, 0.1);
74 }
75
76 fn update_avg_latency(&mut self, latency_ns: u64) {
77 self.avg_message_latency_ns =

Callers 2

test_spawn_metricsFunction · 0.80
spawnMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_spawn_metricsFunction · 0.64