MCPcopy Create free account
hub / github.com/KentBeck/BPlusTree3 / record

Method record

rust/src/bin/function_profiler.rs:22–27  ·  view source on GitHub ↗
(&mut self, duration: Duration)

Source from the content-addressed store, hash-verified

20 }
21
22 fn record(&mut self, duration: Duration) {
23 self.call_count += 1;
24 self.total_time += duration;
25 self.min_time = self.min_time.min(duration);
26 self.max_time = self.max_time.max(duration);
27 }
28
29 fn avg_time(&self) -> Duration {
30 if self.call_count > 0 {

Callers 1

profile_workloadFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected