mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-26 17:40:37 +00:00
wip: reset stats
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -802,6 +802,8 @@ impl Timeline {
|
||||
ctx.report_stats();
|
||||
}
|
||||
|
||||
ctx.reset_stats();
|
||||
|
||||
res
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user