pub struct ColdStartPhases {
pub started_at_ms: u64,
pub restore_started_at_ms: u64,
pub restore_ready_at_ms: u64,
pub wal_replay_started_at_ms: u64,
pub wal_replay_ready_at_ms: u64,
pub index_warmup_started_at_ms: u64,
pub index_warmup_ready_at_ms: u64,
pub ready_at_ms: u64,
}Expand description
PLAN.md Phase 9.1 — cold-start phase snapshot. All fields are
wall-clock unix-ms; 0 means the phase hasn’t fired yet.
Fields§
§started_at_ms: u64§restore_started_at_ms: u64§restore_ready_at_ms: u64§wal_replay_started_at_ms: u64§wal_replay_ready_at_ms: u64§index_warmup_started_at_ms: u64§index_warmup_ready_at_ms: u64§ready_at_ms: u64Implementations§
Source§impl ColdStartPhases
impl ColdStartPhases
Sourcepub fn durations_ms(&self) -> Vec<(&'static str, u64)>
pub fn durations_ms(&self) -> Vec<(&'static str, u64)>
(phase_name, duration_ms) pairs for /metrics. Skips phases
that haven’t fired or haven’t completed.
Trait Implementations§
Source§impl Clone for ColdStartPhases
impl Clone for ColdStartPhases
Source§fn clone(&self) -> ColdStartPhases
fn clone(&self) -> ColdStartPhases
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ColdStartPhases
impl Debug for ColdStartPhases
Source§impl Default for ColdStartPhases
impl Default for ColdStartPhases
Source§fn default() -> ColdStartPhases
fn default() -> ColdStartPhases
Returns the “default value” for a type. Read more
impl Copy for ColdStartPhases
Auto Trait Implementations§
impl Freeze for ColdStartPhases
impl RefUnwindSafe for ColdStartPhases
impl Send for ColdStartPhases
impl Sync for ColdStartPhases
impl Unpin for ColdStartPhases
impl UnsafeUnpin for ColdStartPhases
impl UnwindSafe for ColdStartPhases
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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