MCPcopy Create free account
hub / github.com/InfinitiBit/graphbit / record_call

Method record_call

python/src/tools/registry.rs:49–58  ·  view source on GitHub ↗
(&mut self, duration_ms: u64)

Source from the content-addressed store, hash-verified

47 }
48
49 pub(crate) fn record_call(&mut self, duration_ms: u64) {
50 self.call_count += 1;
51 self.total_duration_ms += duration_ms;
52 self.last_called_at = Some(
53 SystemTime::now()
54 .duration_since(UNIX_EPOCH)
55 .unwrap_or_default()
56 .as_millis() as u64,
57 );
58 }
59}
60
61/// Thread-safe registry for managing tools

Callers 1

record_tool_executionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected