pub struct PartitionTrace {
pub layers: Vec<PartitionLayerRecord>,
}Expand description
Per-layer records of propagations in application order, accumulated until drained by a driver’s take_trace.
A plain propagate_with run records one partition; term counts are post-truncation, so the transient expansion inside a layer is not captured.
Fields§
§layers: Vec<PartitionLayerRecord>One record per layer applied.
Implementations§
Source§impl PartitionTrace
impl PartitionTrace
Sourcepub fn peak_terms(&self) -> Option<usize>
pub fn peak_terms(&self) -> Option<usize>
Peak resident term count between layers, summed over partitions, or None for a zero-layer trace.
Sourcepub fn total_rows_exchanged(&self) -> u64
pub fn total_rows_exchanged(&self) -> u64
Rows moved across partitions over the whole trace.
Sourcepub fn imbalance(&self) -> Vec<f64>
pub fn imbalance(&self) -> Vec<f64>
Per layer, the maximum input term count over partitions divided by the mean; 1.0 for a layer where every partition was empty.
Sourcepub fn local_layers(&self) -> usize
pub fn local_layers(&self) -> usize
Layers that made no transport call.
Sourcepub fn remote_layers(&self) -> usize
pub fn remote_layers(&self) -> usize
Layers that exchanged.
Sourcepub fn total_collectives(&self) -> u64
pub fn total_collectives(&self) -> u64
Collective calls over the whole trace, excluding the point-to-point exchanges.
Trait Implementations§
Source§impl Clone for PartitionTrace
impl Clone for PartitionTrace
Source§fn clone(&self) -> PartitionTrace
fn clone(&self) -> PartitionTrace
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 PartitionTrace
impl Debug for PartitionTrace
Source§impl Default for PartitionTrace
impl Default for PartitionTrace
Source§fn default() -> PartitionTrace
fn default() -> PartitionTrace
Returns the “default value” for a type. Read more
Source§impl PartialEq for PartitionTrace
impl PartialEq for PartitionTrace
impl Eq for PartitionTrace
impl StructuralPartialEq for PartitionTrace
Auto Trait Implementations§
impl Freeze for PartitionTrace
impl RefUnwindSafe for PartitionTrace
impl Send for PartitionTrace
impl Sync for PartitionTrace
impl Unpin for PartitionTrace
impl UnwindSafe for PartitionTrace
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more