pub struct PreciseCoverageDeltaUpdateEvent { /* private fields */ }Available on crate features
Profiler and Runtime and Debugger and experimental only.Expand description
Reports coverage delta since the last poll (either from an event like this, or from
takePreciseCoverage for the current isolate. May only be sent if precise code
coverage has been started. This event can be trigged by the embedder to, for example,
trigger collection of coverage data immediatelly at a certain point in time.
Implementations§
Source§impl PreciseCoverageDeltaUpdateEvent
impl PreciseCoverageDeltaUpdateEvent
pub fn new( timestamp: f64, occassion: String, result: Vec<ScriptCoverage>, ) -> Self
Sourcepub fn timestamp(&self) -> f64
pub fn timestamp(&self) -> f64
Monotonically increasing time (in seconds) when the coverage update was taken in the backend.
Sourcepub fn result(&self) -> &[ScriptCoverage]
pub fn result(&self) -> &[ScriptCoverage]
Coverage data for the current isolate.
Trait Implementations§
Source§impl Clone for PreciseCoverageDeltaUpdateEvent
impl Clone for PreciseCoverageDeltaUpdateEvent
Source§fn clone(&self) -> PreciseCoverageDeltaUpdateEvent
fn clone(&self) -> PreciseCoverageDeltaUpdateEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for PreciseCoverageDeltaUpdateEvent
impl<'de> Deserialize<'de> for PreciseCoverageDeltaUpdateEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PreciseCoverageDeltaUpdateEvent
impl RefUnwindSafe for PreciseCoverageDeltaUpdateEvent
impl Send for PreciseCoverageDeltaUpdateEvent
impl Sync for PreciseCoverageDeltaUpdateEvent
impl Unpin for PreciseCoverageDeltaUpdateEvent
impl UnwindSafe for PreciseCoverageDeltaUpdateEvent
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