pub struct Recorder { /* private fields */ }Expand description
A Debugger that writes down what it saw instead of asking what to do.
Implementations§
Source§impl Recorder
impl Recorder
Sourcepub fn new(sources: Arc<SourceMap>, moments: usize) -> Recorder
pub fn new(sources: Arc<SourceMap>, moments: usize) -> Recorder
A recorder that keeps at most moments moments of a run of sources.
moments is clamped into 1..=MOST_MOMENTS; zero asks for the
default, which is a bound and not the absence of one.
Sourcepub fn json(&self) -> String
pub fn json(&self) -> String
The recording, as the JSON object crate::debug_json puts under
debug.
{"moments":[...],"functions":[...],"kept":int,"limit":int,
"bytes":int,"truncated":"moments"|"bytes"|null,
"frames":int,"objects":int,"policy":string}Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Recorder
impl RefUnwindSafe for Recorder
impl Send for Recorder
impl Sync for Recorder
impl Unpin for Recorder
impl UnsafeUnpin for Recorder
impl UnwindSafe for Recorder
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