wip: reset stats

This commit is contained in:
Vlad Lazar
2024-04-19 16:52:37 +01:00
parent 7f8a6702fc
commit 294a2b2d6f
2 changed files with 5 additions and 0 deletions

View File

@@ -415,6 +415,9 @@ impl RequestContext {
pub fn report_stats(&self) {
tracing::info!("Read path stats: {}", *self.read_path_stats.inner);
}
pub fn reset_stats(&self) {
self.read_path_stats.inner.reset();
}
}

View File

@@ -802,6 +802,8 @@ impl Timeline {
ctx.report_stats();
}
ctx.reset_stats();
res
}