Skip to main content

BreakpointManager

Struct BreakpointManager 

Source
pub struct BreakpointManager { /* private fields */ }
Expand description

Manager for execution breakpoints.

Implementations§

Source§

impl BreakpointManager

Source

pub fn new() -> Self

Create a new breakpoint manager.

Source

pub fn enable(&mut self)

Enable breakpoint checking.

Source

pub fn disable(&mut self)

Disable breakpoint checking.

Source

pub fn is_enabled(&self) -> bool

Check if breakpoint checking is enabled.

Source

pub fn add_node_breakpoint(&mut self, node_id: usize)

Add a node breakpoint.

Source

pub fn add_operation_breakpoint(&mut self, operation: impl Into<String>)

Add an operation breakpoint.

Source

pub fn add_numerical_issue_breakpoint(&mut self)

Add a numerical issue breakpoint.

Source

pub fn add_time_threshold_breakpoint(&mut self, threshold_us: u64)

Add a time threshold breakpoint.

Source

pub fn remove_breakpoint(&mut self, breakpoint: &Breakpoint)

Remove a breakpoint.

Source

pub fn clear_breakpoints(&mut self)

Clear all breakpoints.

Source

pub fn get_breakpoints(&self) -> &[Breakpoint]

Get all breakpoints.

Source

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.

Source

pub fn continue_execution(&mut self)

Continue execution after a breakpoint hit.

Source

pub fn get_hits(&self) -> &[BreakpointHit]

Get all breakpoint hits.

Source

pub fn clear_hits(&mut self)

Clear all breakpoint hits.

Trait Implementations§

Source§

impl Default for BreakpointManager

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V