pub struct StallProvider { /* private fields */ }
Implementations§
Source§impl StallProvider
impl StallProvider
Sourcepub fn new(
stall_rate_interval: MonotonicDuration,
stall_resource: Arc<dyn StallResource>,
) -> Result<StallProvider, Error>
pub fn new( stall_rate_interval: MonotonicDuration, stall_resource: Arc<dyn StallResource>, ) -> Result<StallProvider, Error>
Create a new StallProvider. stall_rate_interval
represents the polling delay between two
memory stall measurements, and the interval for memory stall rate computation.
Trait Implementations§
Source§impl StallProviderTrait for StallProvider
impl StallProviderTrait for StallProvider
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 StallProvider
impl !RefUnwindSafe for StallProvider
impl Send for StallProvider
impl Sync for StallProvider
impl Unpin for StallProvider
impl !UnwindSafe for StallProvider
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