pub struct PerformanceMetrics { /* private fields */ }Implementations§
Source§impl PerformanceMetrics
impl PerformanceMetrics
pub fn new() -> Self
pub fn record_header_generation(&self, duration: Duration)
pub fn record_policy_hash(&self, duration: Duration)
pub fn record_cache_hit(&self)
pub fn record_cache_miss(&self)
pub fn avg_header_generation_ns(&self) -> f64
pub fn avg_policy_hash_ns(&self) -> f64
pub fn cache_hit_rate(&self) -> f64
pub fn min_header_generation_ns(&self) -> u64
pub fn max_header_generation_ns(&self) -> u64
pub fn reset(&self)
Trait Implementations§
Source§impl Debug for PerformanceMetrics
impl Debug for PerformanceMetrics
Auto Trait Implementations§
impl !Freeze for PerformanceMetrics
impl RefUnwindSafe for PerformanceMetrics
impl Send for PerformanceMetrics
impl Sync for PerformanceMetrics
impl Unpin for PerformanceMetrics
impl UnsafeUnpin for PerformanceMetrics
impl UnwindSafe for PerformanceMetrics
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