Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pageserver: return duration from
StorageTimeMetricsTimer
(#10468)
## Problem It's sometimes useful to obtain the elapsed duration from a `StorageTimeMetricsTimer` for purposes beyond just recording it in metrics (e.g. to log it). Extracted from #10405. ## Summary of changes Add `StorageTimeMetricsTimer.elapsed()` and return the duration from `stop_and_record()`.
- Loading branch information
a75e11c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7370 tests run: 6984 passed, 1 failed, 385 skipped (full report)
Failures on Postgres 17
test_scrubber_physical_gc_ancestors[None]
: debug-x86-64Flaky tests (4)
Postgres 17
test_scrubber_physical_gc_ancestors[2]
: release-arm64, release-arm64Postgres 16
test_metrics_normal_work
: release-x86-64Postgres 15
test_lr_with_slow_safekeeper
: release-arm64Test coverage report is not available
a75e11c at 2025-01-21T21:49:38.251Z :recycle: