pub struct JsTraceEvent {
pub seq: u64,
pub at_ms: f64,
pub kind: JsTraceKind,
pub label: String,
pub detail: String,
pub duration_us: u64,
pub error: Option<String>,
pub stack: Vec<String>,
pub source: Option<String>,
pub source_is_fallback: bool,
pub variables: Vec<(String, String)>,
pub program_counter: Option<usize>,
}Expand description
A single traced JavaScript execution event.
Fields§
§seq: u64Monotonic event number, reset when the trace is cleared.
at_ms: f64Milliseconds since the trace started (or was last cleared).
kind: JsTraceKindEvent category.
label: StringShort label, e.g. DOMContentLoaded or setTimeout.
detail: StringHuman-readable detail: listener counts, URLs, console text, …
duration_us: u64Execution time in microseconds (0 for instantaneous events).
error: Option<String>Error message when the event failed.
stack: Vec<String>JavaScript call stack (innermost first) captured at the event.
source: Option<String>Bounded source preview for scripts and inline handlers.
source_is_fallback: boolTrue when source is the most recently evaluated script, used for callbacks whose VM frame does not retain source text.
variables: Vec<(String, String)>Local variables captured when this event terminated with an error.
program_counter: Option<usize>Bytecode program counter captured at a terminal runtime error.
Trait Implementations§
Source§impl Clone for JsTraceEvent
impl Clone for JsTraceEvent
Source§fn clone(&self) -> JsTraceEvent
fn clone(&self) -> JsTraceEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for JsTraceEvent
impl RefUnwindSafe for JsTraceEvent
impl Send for JsTraceEvent
impl Sync for JsTraceEvent
impl Unpin for JsTraceEvent
impl UnsafeUnpin for JsTraceEvent
impl UnwindSafe for JsTraceEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more