pub struct Utilization {
pub read_data_cycles: u64,
pub program_data_cycles: u64,
pub span_cycles: u64,
pub reads: u64,
pub programs: u64,
pub erases: u64,
pub worst_read_latency: u64,
pub channels: u32,
}Expand description
The measured outcome of a plan.
Fields§
§read_data_cycles: u64Read data-out cycles on the channels.
program_data_cycles: u64Program data-in cycles on the channels (writes use the bus too, then bind the die on tPROG).
span_cycles: u64§reads: u64§programs: u64§erases: u64§worst_read_latency: u64Worst-case observed read latency (beat − issue) across all reads.
channels: u32Channel count — the aggregate bus can move channels data cycles per cycle.
Implementations§
Source§impl Utilization
impl Utilization
Sourcepub fn value(&self) -> f64
pub fn value(&self) -> f64
Aggregate data-bus utilization ∈ [0,1]: read data-out + program data-in cycles ÷ the
total bus capacity over the span (span × channels), since the channels run in parallel.
A pure-write workload is tPROG-bound (die-bound), so its channel utilization is honestly
low — the bus idles while the dies program.
Trait Implementations§
Source§impl Clone for Utilization
impl Clone for Utilization
Source§fn clone(&self) -> Utilization
fn clone(&self) -> Utilization
Returns a duplicate 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 moreSource§impl Debug for Utilization
impl Debug for Utilization
Source§impl PartialEq for Utilization
impl PartialEq for Utilization
impl Copy for Utilization
impl StructuralPartialEq for Utilization
Auto Trait Implementations§
impl Freeze for Utilization
impl RefUnwindSafe for Utilization
impl Send for Utilization
impl Sync for Utilization
impl Unpin for Utilization
impl UnsafeUnpin for Utilization
impl UnwindSafe for Utilization
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.