pub struct StatsAccumulator { /* private fields */ }Expand description
统计聚合器:单次扫描同时聚合慢 SQL(最小堆)与高频 SQL(HashMap)。
Implementations§
Source§impl StatsAccumulator
impl StatsAccumulator
Sourcepub fn into_results(self) -> (Vec<SlowSqlRow>, Vec<FrequentSqlRow>)
pub fn into_results(self) -> (Vec<SlowSqlRow>, Vec<FrequentSqlRow>)
消费聚合器,返回慢 SQL 行(按 elapsed 降序)与高频 SQL 行(按 call_count 降序)。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StatsAccumulator
impl RefUnwindSafe for StatsAccumulator
impl Send for StatsAccumulator
impl Sync for StatsAccumulator
impl Unpin for StatsAccumulator
impl UnsafeUnpin for StatsAccumulator
impl UnwindSafe for StatsAccumulator
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> 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