pub struct PushPerfState<Prev: Rec> { /* private fields */ }Available on crate feature
dev-energymodel only.Implementations§
Source§impl<Prev: Rec> PushPerfState<Prev>
impl<Prev: Rec> PushPerfState<Prev>
pub fn new(prev: Prev) -> Self
pub fn end_nested(self) -> Prev
pub fn push_pad(self, value: &[u8]) -> Self
Sourcepub fn push_performance(self, value: u64) -> Self
pub fn push_performance(self, value: u64) -> Self
CPU performance (capacity) at a given frequency.
Sourcepub fn push_frequency(self, value: u64) -> Self
pub fn push_frequency(self, value: u64) -> Self
The frequency in KHz, for consistency with CPUFreq.
Sourcepub fn push_power(self, value: u64) -> Self
pub fn push_power(self, value: u64) -> Self
The power consumed at this level (by 1 CPU or by a registered device). It can be a total power: static and dynamic.
Sourcepub fn push_cost(self, value: u64) -> Self
pub fn push_cost(self, value: u64) -> Self
The cost coefficient associated with this level, used during energy calculation. Equal to: power * max_frequency / frequency.
Sourcepub fn push_flags(self, value: u64) -> Self
pub fn push_flags(self, value: u64) -> Self
Bitmask of performance state flags.
Associated type: PerfStateFlags (enum)
Trait Implementations§
Source§impl<Prev: Rec> Drop for PushPerfState<Prev>
impl<Prev: Rec> Drop for PushPerfState<Prev>
Auto Trait Implementations§
impl<Prev> Freeze for PushPerfState<Prev>where
Prev: Freeze,
impl<Prev> RefUnwindSafe for PushPerfState<Prev>where
Prev: RefUnwindSafe,
impl<Prev> Send for PushPerfState<Prev>where
Prev: Send,
impl<Prev> Sync for PushPerfState<Prev>where
Prev: Sync,
impl<Prev> Unpin for PushPerfState<Prev>where
Prev: Unpin,
impl<Prev> UnsafeUnpin for PushPerfState<Prev>where
Prev: UnsafeUnpin,
impl<Prev> UnwindSafe for PushPerfState<Prev>where
Prev: UnwindSafe,
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