#[non_exhaustive]pub struct RenderCounts {
pub nodes: usize,
pub bytes: usize,
pub list_iterations: usize,
pub walk_time: Duration,
}Expand description
What one render did, for the application’s own logs and metrics.
On a crate::RenderError for a budget or a fault, the same counts say
how far the walk got. For a page served without a walk (a browser
shell) every count is zero. nodes and list_iterations are counted by
crate::PageHandle::render.
Walk time excludes checked props conversion and document assembly. Measure the complete handle call when deciding to move owned request data and a cloned handle into the application runtime’s blocking pool.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.nodes: usizeElements and text nodes the walk wrote (hydration markers and comments are not nodes).
bytes: usizeBytes of HTML the walk wrote into the page’s root. State and document
markup are excluded from this work counter, but the complete response
is also checked against WalkLimits::max_output_bytes before allocation.
list_iterations: usizeList rows the walk wrote, across every nesting depth, the quantity
WalkLimits::max_list_iterations bounds.
walk_time: DurationTime spent in the walk.