pub struct ScriptMetrics {
pub mean_ms: f64,
pub p95_ms: f64,
pub max_ms: f64,
pub window_polls: u64,
pub total_polls: u64,
pub productive_polls: u64,
pub spent_ms: f64,
pub breakdown: Vec<ScriptSource>,
}Expand description
Script execution cost, in milliseconds, over the retained poll window.
Fields§
§mean_ms: f64§p95_ms: f64§max_ms: f64§window_polls: u64Polls that ran script, within the retained window.
total_polls: u64Every poll since launch, including the ones that found nothing to do.
productive_polls: u64Polls that ran script since launch.
spent_ms: f64Total time spent in the script runtime since launch.
breakdown: Vec<ScriptSource>Where that time went, worst total first: event name or timer source, call count, total milliseconds, worst single call.
Trait Implementations§
Source§impl Clone for ScriptMetrics
impl Clone for ScriptMetrics
Source§fn clone(&self) -> ScriptMetrics
fn clone(&self) -> ScriptMetrics
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 moreSource§impl Debug for ScriptMetrics
impl Debug for ScriptMetrics
Source§impl<'de> Deserialize<'de> for ScriptMetrics
impl<'de> Deserialize<'de> for ScriptMetrics
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
Source§impl PartialEq for ScriptMetrics
impl PartialEq for ScriptMetrics
Source§impl Serialize for ScriptMetrics
impl Serialize for ScriptMetrics
impl StructuralPartialEq for ScriptMetrics
Auto Trait Implementations§
impl Freeze for ScriptMetrics
impl RefUnwindSafe for ScriptMetrics
impl Send for ScriptMetrics
impl Sync for ScriptMetrics
impl Unpin for ScriptMetrics
impl UnsafeUnpin for ScriptMetrics
impl UnwindSafe for ScriptMetrics
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