pub struct ConsumptionBenchmarkDef {
name: String,
thresholds: Option<Thresholds<Consumption>>,
pids: Vec<NamedProcess>,
}
Fields§
§name: String
§thresholds: Option<Thresholds<Consumption>>
§pids: Vec<NamedProcess>
Implementations§
source§impl ConsumptionBenchmarkDef
impl ConsumptionBenchmarkDef
pub fn new(name: String) -> Self
pub fn name(&self) -> String
pub fn bare_metal_stake_pool_consumption_target(&mut self) -> &mut Self
pub fn target(&mut self, target: ResourcesUsage) -> &mut Self
pub fn no_target(&mut self) -> &mut Self
pub fn for_process<S: Into<String>>(&mut self, name: S, pid: usize) -> &mut Self
pub fn for_processes(&mut self, processes: Vec<NamedProcess>) -> &mut Self
pub fn thresholds(&self) -> Option<&Thresholds<Consumption>>
pub fn start(&self) -> ConsumptionBenchmarkRun
pub fn start_async(&self, interval: Duration) -> ConsumptionBenchmarkRunAsync
Trait Implementations§
source§impl Clone for ConsumptionBenchmarkDef
impl Clone for ConsumptionBenchmarkDef
source§fn clone(&self) -> ConsumptionBenchmarkDef
fn clone(&self) -> ConsumptionBenchmarkDef
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for ConsumptionBenchmarkDef
impl Send for ConsumptionBenchmarkDef
impl Sync for ConsumptionBenchmarkDef
impl Unpin for ConsumptionBenchmarkDef
impl UnwindSafe for ConsumptionBenchmarkDef
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