pub struct PerformanceMetrics {
pub ttfb_ms: f64,
pub fcp_ms: f64,
pub lcp_ms: f64,
pub cls: f64,
pub fid_ms: f64,
pub long_tasks: u32,
pub total_blocking_ms: f64,
pub js_heap_mb: f64,
pub dom_nodes: u32,
}Expand description
Web Vitals + heap + DOM-stat block returned by
Engine::performance. Floats use 2 decimals on the wire; missing
metrics are emitted as 0 rather than dropped (keeps the line
shape stable).
Fields§
§ttfb_ms: f64§fcp_ms: f64§lcp_ms: f64§cls: f64§fid_ms: f64§long_tasks: u32§total_blocking_ms: f64§js_heap_mb: f64§dom_nodes: u32Trait Implementations§
Source§impl Clone for PerformanceMetrics
impl Clone for PerformanceMetrics
Source§fn clone(&self) -> PerformanceMetrics
fn clone(&self) -> PerformanceMetrics
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 PerformanceMetrics
impl Debug for PerformanceMetrics
Source§impl Default for PerformanceMetrics
impl Default for PerformanceMetrics
Source§fn default() -> PerformanceMetrics
fn default() -> PerformanceMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PerformanceMetrics
impl RefUnwindSafe for PerformanceMetrics
impl Send for PerformanceMetrics
impl Sync for PerformanceMetrics
impl Unpin for PerformanceMetrics
impl UnsafeUnpin for PerformanceMetrics
impl UnwindSafe for PerformanceMetrics
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