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§impl Debug for PerformanceMetrics
impl Debug for PerformanceMetrics
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