MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / execute_with_lock_tracking

Method execute_with_lock_tracking

graphlite/src/exec/lock_tracker.rs:27–32  ·  view source on GitHub ↗

ROADMAP v0.6.0 - Lock wait time measurement for query profiling

(&self, operation: F)

Source from the content-addressed store, hash-verified

25
26 #[allow(dead_code)] // ROADMAP v0.6.0 - Lock wait time measurement for query profiling
27 pub fn execute_with_lock_tracking<T, F>(&self, operation: F) -> T
28 where
29 F: FnOnce() -> T,
30 {
31 operation()
32 }
33
34 #[allow(dead_code)] // ROADMAP v0.6.0 - Accumulate lock wait durations for metrics
35 pub fn add_lock_wait_time(&self, _duration: Duration) {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected