#[non_exhaustive]pub struct HotPath {
pub id: String,
pub file: String,
pub function: String,
pub line: u32,
pub end_line: u32,
pub invocations: u64,
pub percentile: u8,
pub identity: Option<FunctionIdentity>,
}Expand description
A function the sidecar identified as a hot path in the current dump.
Marked #[non_exhaustive] in 0.6.0: downstream Rust consumers must
stop using struct-literal construction. The wire shape is unchanged.
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.id: StringDeterministic content hash of shape fallow:hot:<hash>. See
hot_path_id for the canonical helper. Continues to ship through
0.6 alongside HotPath::identity.
file: StringPath to the source file, relative to Request::project_root.
function: StringFunction name as reported by the static analyzer.
line: u321-indexed line the function starts on.
end_line: u321-indexed line the function ends on (inclusive). Mirrors
StaticFunction::end_line from the request envelope so consumers
can match a hot path against a PR diff at line granularity, not just
file granularity. Older 0.4-shape sidecars omit this field; readers
that receive 0 MUST treat the hot path as a single-line range
(line..=line) rather than a span.
invocations: u64Raw invocation count from the V8 dump.
percentile: u8Percentile rank of this function’s invocation count over the
invocation distribution of the current response’s hot paths. 100
means the busiest function, 0 the quietest that still qualified.
identity: Option<FunctionIdentity>Canonical function identity introduced in 0.6.0. Optional for forward-compat with 0.5-shape sidecars.