pub struct RuntimeMetadata {
pub executed: usize,
pub runtime_errors: usize,
pub timeouts: usize,
pub oom: usize,
pub host_calls: usize,
pub mutations: usize,
pub instance_writes: usize,
pub list_writes: usize,
pub binding_errors: usize,
pub resolve_failures: usize,
pub data_reads: usize,
}Expand description
Cumulative metadata for a single document’s flatten. The runtime
adapter accumulates counters across calls; the dispatch site reads
them via XfaJsRuntime::take_metadata when the document is done.
Fields§
§executed: usizeScripts that ran to completion inside the sandbox.
runtime_errors: usizeGeneric runtime / script errors (parse, throw, NoBindings, …).
timeouts: usizeTime-budget exhaustions.
oom: usizeMemory-budget exhaustions.
host_calls: usizePhase C host-binding invocations.
mutations: usizePhase C successful field.rawValue writes.
instance_writes: usizePhase D successful instanceManager structure writes.
list_writes: usizePhase D-β successful listbox clearItems / addItem writes.
binding_errors: usizePhase C binding-level failures (type, activity, cap, parse).
resolve_failures: usizePhase C SOM resolution misses / failures.
data_reads: usizePhase D-γ successful DataDom reads (children / value / child-by-name).
Implementations§
Source§impl RuntimeMetadata
impl RuntimeMetadata
Sourcepub fn accumulate(&mut self, other: RuntimeMetadata)
pub fn accumulate(&mut self, other: RuntimeMetadata)
Add another metadata snapshot into this one.
Trait Implementations§
Source§impl Clone for RuntimeMetadata
impl Clone for RuntimeMetadata
Source§fn clone(&self) -> RuntimeMetadata
fn clone(&self) -> RuntimeMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RuntimeMetadata
impl Debug for RuntimeMetadata
Source§impl Default for RuntimeMetadata
impl Default for RuntimeMetadata
Source§fn default() -> RuntimeMetadata
fn default() -> RuntimeMetadata
Source§impl PartialEq for RuntimeMetadata
impl PartialEq for RuntimeMetadata
Source§fn eq(&self, other: &RuntimeMetadata) -> bool
fn eq(&self, other: &RuntimeMetadata) -> bool
self and other values to be equal, and is used by ==.impl Copy for RuntimeMetadata
impl Eq for RuntimeMetadata
impl StructuralPartialEq for RuntimeMetadata
Auto Trait Implementations§
impl Freeze for RuntimeMetadata
impl RefUnwindSafe for RuntimeMetadata
impl Send for RuntimeMetadata
impl Sync for RuntimeMetadata
impl Unpin for RuntimeMetadata
impl UnsafeUnpin for RuntimeMetadata
impl UnwindSafe for RuntimeMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().