pub struct StallProviderImpl { /* private fields */ }
Implementations§
Source§impl StallProviderImpl
impl StallProviderImpl
Sourcepub fn new(
stall_rate_interval: MonotonicDuration,
stall_resource: Arc<dyn StallResource>,
) -> Result<StallProviderImpl, Error>
pub fn new( stall_rate_interval: MonotonicDuration, stall_resource: Arc<dyn StallResource>, ) -> Result<StallProviderImpl, Error>
Create a new StallProviderImpl. stall_rate_interval
represents the polling delay between
two memory stall measurements, and the interval for memory stall rate computation.
Trait Implementations§
Source§impl StallProvider for StallProviderImpl
impl StallProvider for StallProviderImpl
Source§fn get_stall_info(&self) -> Result<MemoryStall, Error>
fn get_stall_info(&self) -> Result<MemoryStall, Error>
Return the current memory stall values from the kernel.
Source§fn get_stall_rate(&self) -> Option<MemoryStallRate>
fn get_stall_rate(&self) -> Option<MemoryStallRate>
Return the
Auto Trait Implementations§
impl Freeze for StallProviderImpl
impl !RefUnwindSafe for StallProviderImpl
impl Send for StallProviderImpl
impl Sync for StallProviderImpl
impl Unpin for StallProviderImpl
impl !UnwindSafe for StallProviderImpl
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