pub struct WasteReport {
pub entries: Vec<WasteEntry>,
pub total_waste_byte_secs: u64,
pub total_cost_byte_secs: u64,
pub fragmented_groups: usize,
}Expand description
Waste report computed from a recording.
Fields§
§entries: Vec<WasteEntry>Per-lease waste entries, sorted by waste_byte_secs descending.
total_waste_byte_secs: u64Total waste across all leases (byte-seconds).
total_cost_byte_secs: u64Total cost across all leases (byte-seconds).
fragmented_groups: usizeNumber of fragmented lease groups detected.
Implementations§
Source§impl WasteReport
impl WasteReport
Sourcepub fn from_recording(rec: &ProfileRecording) -> Self
pub fn from_recording(rec: &ProfileRecording) -> Self
Generate a waste report from a recording.
Sourcepub fn from_timeline(timeline: &LeaseTimeline, rec: &ProfileRecording) -> Self
pub fn from_timeline(timeline: &LeaseTimeline, rec: &ProfileRecording) -> Self
Generate a waste report from a pre-computed timeline.
Sourcepub fn render_text(&self) -> String
pub fn render_text(&self) -> String
Render as a text table suitable for CLI output.
Sourcepub fn render_html(&self) -> String
pub fn render_html(&self) -> String
Render as self-contained HTML with drill-down.
Trait Implementations§
Source§impl Clone for WasteReport
impl Clone for WasteReport
Source§fn clone(&self) -> WasteReport
fn clone(&self) -> WasteReport
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 moreAuto Trait Implementations§
impl Freeze for WasteReport
impl RefUnwindSafe for WasteReport
impl Send for WasteReport
impl Sync for WasteReport
impl Unpin for WasteReport
impl UnwindSafe for WasteReport
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