pub struct KernelDiagnostics {
pub events: Vec<DiagnosticEvent>,
pub counters: BTreeMap<String, u64>,
pub measurements: BTreeMap<String, f64>,
}Fields§
§events: Vec<DiagnosticEvent>§counters: BTreeMap<String, u64>§measurements: BTreeMap<String, f64>Implementations§
Source§impl KernelDiagnostics
impl KernelDiagnostics
pub fn event( &mut self, severity: DiagnosticSeverity, stage: KernelStage, code: impl Into<String>, message: impl Into<String>, )
pub fn count(&mut self, code: impl Into<String>)
pub fn count_n(&mut self, code: impl Into<String>, amount: u64)
pub fn measure_max(&mut self, code: impl Into<String>, value: f64)
pub fn worst(&self) -> Option<DiagnosticSeverity>
pub fn shippable(&self) -> bool
Trait Implementations§
Source§impl Clone for KernelDiagnostics
impl Clone for KernelDiagnostics
Source§impl Debug for KernelDiagnostics
impl Debug for KernelDiagnostics
Source§impl Default for KernelDiagnostics
impl Default for KernelDiagnostics
Source§impl<'de> Deserialize<'de> for KernelDiagnostics
impl<'de> Deserialize<'de> for KernelDiagnostics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for KernelDiagnostics
impl Freeze for KernelDiagnostics
impl Move for KernelDiagnostics
impl RefUnwindSafe for KernelDiagnostics
impl Send for KernelDiagnostics
impl Sync for KernelDiagnostics
impl Unpin for KernelDiagnostics
impl UnsafeUnpin for KernelDiagnostics
impl UnwindSafe for KernelDiagnostics
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