pub struct ProfileSummary {
pub total_duration_us: u64,
pub span_count: usize,
pub unique_lease_count: usize,
pub total_lease_cost_byte_secs: u64,
pub by_resource_type: BTreeMap<String, ResourceTypeSummary>,
pub top_by_cost: Vec<(String, u64)>,
pub top_by_bytes: Vec<(String, u64)>,
pub top_by_duration: Vec<(String, u64)>,
pub top_by_acquire_wait: Vec<(String, u64)>,
}Expand description
Aggregated profile statistics.
Fields§
§total_duration_us: u64Total recording duration in microseconds.
span_count: usizeNumber of spans.
unique_lease_count: usizeNumber of unique lease IDs.
total_lease_cost_byte_secs: u64Total lease cost across all spans (byte-seconds).
by_resource_type: BTreeMap<String, ResourceTypeSummary>Per-resource-type breakdown.
top_by_cost: Vec<(String, u64)>Top N spans by lease cost (name, cost).
top_by_bytes: Vec<(String, u64)>Top N spans by bytes (name, bytes_read + bytes_written).
top_by_duration: Vec<(String, u64)>Top N spans by duration (name, duration_us).
top_by_acquire_wait: Vec<(String, u64)>Top N spans by acquire wait (name, wait_us).
Implementations§
Source§impl ProfileSummary
impl ProfileSummary
Sourcepub fn from_recording(rec: &ProfileRecording) -> Self
pub fn from_recording(rec: &ProfileRecording) -> Self
Compute summary from a recording with default top-N = 10.
Sourcepub fn from_recording_top_n(rec: &ProfileRecording, top_n: usize) -> Self
pub fn from_recording_top_n(rec: &ProfileRecording, top_n: usize) -> Self
Compute summary from a recording with specified top-N.
Trait Implementations§
Source§impl Clone for ProfileSummary
impl Clone for ProfileSummary
Source§fn clone(&self) -> ProfileSummary
fn clone(&self) -> ProfileSummary
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 ProfileSummary
impl RefUnwindSafe for ProfileSummary
impl Send for ProfileSummary
impl Sync for ProfileSummary
impl Unpin for ProfileSummary
impl UnwindSafe for ProfileSummary
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