pub struct LeaseTimeline {
pub entries: Vec<LeaseTimelineEntry>,
pub start_time: u64,
pub end_time: u64,
}Expand description
Lease timeline (Gantt chart) computed from a recording.
Fields§
§entries: Vec<LeaseTimelineEntry>Per-lease lifecycle entries, sorted by acquired_at.
start_time: u64Overall start time (Unix microseconds).
end_time: u64Overall end time (Unix microseconds).
Implementations§
Source§impl LeaseTimeline
impl LeaseTimeline
Sourcepub fn from_recording(rec: &ProfileRecording) -> Self
pub fn from_recording(rec: &ProfileRecording) -> Self
Build a timeline from a profile recording.
Sourcepub fn render_html(&self) -> String
pub fn render_html(&self) -> String
Render as self-contained HTML Gantt chart.
Trait Implementations§
Source§impl Clone for LeaseTimeline
impl Clone for LeaseTimeline
Source§fn clone(&self) -> LeaseTimeline
fn clone(&self) -> LeaseTimeline
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 LeaseTimeline
impl RefUnwindSafe for LeaseTimeline
impl Send for LeaseTimeline
impl Sync for LeaseTimeline
impl Unpin for LeaseTimeline
impl UnwindSafe for LeaseTimeline
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