pub struct PerfMetrics { /* private fields */ }Expand description
性能加速指标聚合(v7.3.0)
使用无锁原子计数器采集 SIMD/零拷贝/预热/计划缓存四项加速能力的运行指标。
Implementations§
Source§impl PerfMetrics
impl PerfMetrics
Sourcepub fn record_simd_hit(&self)
pub fn record_simd_hit(&self)
记录 SIMD 命中
Sourcepub fn record_simd_miss(&self)
pub fn record_simd_miss(&self)
记录 SIMD 未命中
Sourcepub fn record_zero_copy_hit(&self)
pub fn record_zero_copy_hit(&self)
记录零拷贝命中
Sourcepub fn record_prewarm_success(&self)
pub fn record_prewarm_success(&self)
记录预热成功
Sourcepub fn record_plan_cache_eviction(&self)
pub fn record_plan_cache_eviction(&self)
记录计划缓存淘汰
Sourcepub fn set_simd_latency_reduction_pct(&self, pct: f64)
pub fn set_simd_latency_reduction_pct(&self, pct: f64)
设置 SIMD 延迟降低百分比
Sourcepub fn set_zero_copy_rss_reduction_pct(&self, pct: f64)
pub fn set_zero_copy_rss_reduction_pct(&self, pct: f64)
设置零拷贝 RSS 降低百分比
Sourcepub fn set_plan_cache_hit_rate(&self, rate: f64)
pub fn set_plan_cache_hit_rate(&self, rate: f64)
设置计划缓存命中率
Sourcepub fn snapshot(&self) -> PerfMetricsSnapshot
pub fn snapshot(&self) -> PerfMetricsSnapshot
采集指标快照
Trait Implementations§
Source§impl Debug for PerfMetrics
impl Debug for PerfMetrics
Source§impl Default for PerfMetrics
impl Default for PerfMetrics
Source§fn default() -> PerfMetrics
fn default() -> PerfMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for PerfMetrics
impl RefUnwindSafe for PerfMetrics
impl Send for PerfMetrics
impl Sync for PerfMetrics
impl Unpin for PerfMetrics
impl UnsafeUnpin for PerfMetrics
impl UnwindSafe for PerfMetrics
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 more