pub struct ShareReport {
pub total_bytes: u64,
pub unique_bytes: u64,
pub unit_count: u64,
pub unique_count: u64,
pub by_kind: Vec<(String, u64, u64)>,
}Expand description
Aggregate sharing of the fine units over a cohort of descriptors.
total_bytes sums every unit occurrence; unique_bytes sums each distinct
unit id once. by_kind is (kind, total, unique) per kind, sorted by kind
name. A distinct unit id belongs to exactly the kinds it appears under, so
the per-kind unique column can sum to more than unique_bytes when identical
bytes occur under two kinds (for example an object and a channel payload).
Fields§
§total_bytes: u64Sum of every unit occurrence’s length.
unique_bytes: u64Sum of length over distinct unit ids.
unit_count: u64Number of unit occurrences.
unique_count: u64Number of distinct unit ids.
by_kind: Vec<(String, u64, u64)>(kind, total, unique) per kind, sorted by kind.
Implementations§
Trait Implementations§
Auto Trait Implementations§
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