pub struct DebugSession { /* private fields */ }Expand description
An active debug session for a single kernel launch.
Collects DebugEvents and provides analysis / reporting helpers.
Implementations§
Source§impl DebugSession
impl DebugSession
Sourcepub fn kernel_name(&self) -> &str
pub fn kernel_name(&self) -> &str
The kernel name this session is attached to.
Sourcepub fn events(&self) -> &[DebugEvent]
pub fn events(&self) -> &[DebugEvent]
All events collected so far.
Sourcepub fn add_event(&mut self, event: DebugEvent)
pub fn add_event(&mut self, event: DebugEvent)
Record a new debug event.
Sourcepub fn filter_events(&self, event_type: &DebugEventType) -> Vec<&DebugEvent>
pub fn filter_events(&self, event_type: &DebugEventType) -> Vec<&DebugEvent>
Return references to events whose type matches the discriminant of
event_type (field values inside variants are ignored for matching).
Sourcepub fn summary(&self) -> DebugSummary
pub fn summary(&self) -> DebugSummary
Compute aggregate statistics over all collected events.
Sourcepub fn format_report(&self) -> String
pub fn format_report(&self) -> String
Produce a human-readable debug report.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DebugSession
impl RefUnwindSafe for DebugSession
impl Send for DebugSession
impl Sync for DebugSession
impl Unpin for DebugSession
impl UnsafeUnpin for DebugSession
impl UnwindSafe for DebugSession
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