20260605 ROA增量验证和rsync host失败短路
This commit is contained in:
@@ -71,6 +71,14 @@ impl TimingHandle {
|
||||
.or_insert(inc);
|
||||
}
|
||||
|
||||
pub fn counts_snapshot(&self) -> HashMap<String, u64> {
|
||||
let g = self.inner.lock().expect("timing lock");
|
||||
g.counts
|
||||
.iter()
|
||||
.map(|(key, value)| ((*key).to_string(), *value))
|
||||
.collect()
|
||||
}
|
||||
|
||||
/// Record a phase duration directly in nanoseconds.
|
||||
///
|
||||
/// This is useful when aggregating sub-phase timings locally (to reduce lock contention)
|
||||
|
||||
Reference in New Issue
Block a user