pub struct BgWriterStats {
pub rounds: AtomicU64,
pub pages_flushed: AtomicU64,
pub max_round_hit: AtomicU64,
pub last_dirty_fraction_milli: AtomicU64,
}Expand description
Diagnostic counters published by the background writer for monitoring / EXPLAIN ANALYZE-style introspection.
Fields§
§rounds: AtomicU64Total scan rounds executed since startup.
pages_flushed: AtomicU64Total pages flushed since startup.
max_round_hit: AtomicU64Total times the writer exited a round early because
it hit max_pages_per_round.
last_dirty_fraction_milli: AtomicU64Last reported dirty fraction (×1000 to keep it integer).
Implementations§
Source§impl BgWriterStats
impl BgWriterStats
Trait Implementations§
Source§impl Debug for BgWriterStats
impl Debug for BgWriterStats
Source§impl Default for BgWriterStats
impl Default for BgWriterStats
Source§fn default() -> BgWriterStats
fn default() -> BgWriterStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for BgWriterStats
impl RefUnwindSafe for BgWriterStats
impl Send for BgWriterStats
impl Sync for BgWriterStats
impl Unpin for BgWriterStats
impl UnsafeUnpin for BgWriterStats
impl UnwindSafe for BgWriterStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request