pub struct BreakpointManager { /* private fields */ }Expand description
Manager for execution breakpoints.
Implementations§
Source§impl BreakpointManager
impl BreakpointManager
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if breakpoint checking is enabled.
Sourcepub fn add_node_breakpoint(&mut self, node_id: usize)
pub fn add_node_breakpoint(&mut self, node_id: usize)
Add a node breakpoint.
Sourcepub fn add_operation_breakpoint(&mut self, operation: impl Into<String>)
pub fn add_operation_breakpoint(&mut self, operation: impl Into<String>)
Add an operation breakpoint.
Sourcepub fn add_numerical_issue_breakpoint(&mut self)
pub fn add_numerical_issue_breakpoint(&mut self)
Add a numerical issue breakpoint.
Sourcepub fn add_time_threshold_breakpoint(&mut self, threshold_us: u64)
pub fn add_time_threshold_breakpoint(&mut self, threshold_us: u64)
Add a time threshold breakpoint.
Sourcepub fn remove_breakpoint(&mut self, breakpoint: &Breakpoint)
pub fn remove_breakpoint(&mut self, breakpoint: &Breakpoint)
Remove a breakpoint.
Sourcepub fn clear_breakpoints(&mut self)
pub fn clear_breakpoints(&mut self)
Clear all breakpoints.
Sourcepub fn get_breakpoints(&self) -> &[Breakpoint]
pub fn get_breakpoints(&self) -> &[Breakpoint]
Get all breakpoints.
Sourcepub fn should_break(
&mut self,
node_id: usize,
operation: &str,
elapsed_us: u64,
has_numerical_issue: bool,
) -> Option<BreakpointHit>
pub fn should_break( &mut self, node_id: usize, operation: &str, elapsed_us: u64, has_numerical_issue: bool, ) -> Option<BreakpointHit>
Check if execution should break at this point.
Sourcepub fn continue_execution(&mut self)
pub fn continue_execution(&mut self)
Continue execution after a breakpoint hit.
Sourcepub fn get_hits(&self) -> &[BreakpointHit]
pub fn get_hits(&self) -> &[BreakpointHit]
Get all breakpoint hits.
Sourcepub fn clear_hits(&mut self)
pub fn clear_hits(&mut self)
Clear all breakpoint hits.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BreakpointManager
impl RefUnwindSafe for BreakpointManager
impl Send for BreakpointManager
impl Sync for BreakpointManager
impl Unpin for BreakpointManager
impl UnwindSafe for BreakpointManager
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