pub struct IrRecorder { /* private fields */ }Expand description
Records IR batches for later replay or debugging.
Implementations§
Source§impl IrRecorder
impl IrRecorder
pub fn new() -> Self
pub fn start_recording(&mut self)
pub fn stop_recording(&mut self)
pub fn is_recording(&self) -> bool
Sourcepub fn batches(&self) -> &[TimestampedBatch]
pub fn batches(&self) -> &[TimestampedBatch]
Get all recorded batches.
pub fn is_empty(&self) -> bool
Sourcepub fn export_json(&self) -> Value
pub fn export_json(&self) -> Value
Export recorded batches as JSON.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IrRecorder
impl RefUnwindSafe for IrRecorder
impl Send for IrRecorder
impl Sync for IrRecorder
impl Unpin for IrRecorder
impl UnsafeUnpin for IrRecorder
impl UnwindSafe for IrRecorder
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