pub struct HotpathGuardBuilder {}Implementations§
Source§impl HotpathGuardBuilder
impl HotpathGuardBuilder
pub fn new(_caller_name: &'static str) -> Self
pub fn percentiles(self, _percentiles: &[f64]) -> Self
pub fn format(self, _format: Format) -> Self
pub fn functions_limit(self, _limit: usize) -> Self
pub fn channels_limit(self, _limit: usize) -> Self
pub fn streams_limit(self, _limit: usize) -> Self
pub fn futures_limit(self, _limit: usize) -> Self
pub fn threads_limit(self, _limit: usize) -> Self
pub fn rw_locks_limit(self, _limit: usize) -> Self
pub fn mutexes_limit(self, _limit: usize) -> Self
pub fn sql_limit(self, _limit: usize) -> Self
pub fn http_limit(self, _limit: usize) -> Self
pub fn io_limit(self, _limit: usize) -> Self
pub fn limit(self, _limit: usize) -> Self
pub fn time_sampling_rate(self, _rate: f64) -> Self
pub fn functions_time_sampling_rate(self, _rate: f64) -> Self
pub fn mutexes_time_sampling_rate(self, _rate: f64) -> Self
pub fn rw_locks_time_sampling_rate(self, _rate: f64) -> Self
pub fn futures_time_sampling_rate(self, _rate: f64) -> Self
pub fn channels_time_sampling_rate(self, _rate: f64) -> Self
pub fn io_time_sampling_rate(self, _rate: f64) -> Self
pub fn output_path(self, _path: impl AsRef<Path>) -> Self
pub fn sections(self, _sections: Vec<Section>) -> Self
pub fn sections_exclude(self, _sections: Vec<Section>) -> Self
pub fn report(self, _spec: &str) -> Self
pub fn before_shutdown(self, _f: impl FnOnce() + Send + 'static) -> Self
pub fn build(self) -> HotpathGuard
pub fn build_with_shutdown(self, _duration: Duration)
Auto Trait Implementations§
impl Freeze for HotpathGuardBuilder
impl RefUnwindSafe for HotpathGuardBuilder
impl Send for HotpathGuardBuilder
impl Sync for HotpathGuardBuilder
impl Unpin for HotpathGuardBuilder
impl UnsafeUnpin for HotpathGuardBuilder
impl UnwindSafe for HotpathGuardBuilder
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