pub struct RuntimeCoverageHotPath {
pub id: String,
pub stable_id: Option<String>,
pub path: PathBuf,
pub function: String,
pub line: u32,
pub end_line: u32,
pub invocations: u64,
pub percentile: u8,
pub actions: Vec<RuntimeCoverageAction>,
pub optimization_target: Option<RuntimeCoverageOptimizationTarget>,
}Expand description
One hot function in runtime_coverage.hot_paths, ranked by invocations.
Fields§
§id: StringStable content-hash ID of the form fallow:hot:<hash>.
stable_id: Option<String>Cross-surface join key (fallow:fn:<hash>) for the hot function. Stable
across line moves; shared with the same function’s findings / blast /
importance entries. null when no FunctionIdentity was supplied.
path: PathBufFile path relative to the project root.
function: StringFunction name for the hot path.
line: u321-indexed line number the function starts on.
end_line: u321-indexed line the function ends on (inclusive). Mirrors
fallow_cov_protocol::HotPath::end_line (added in protocol 0.5).
Older 0.4-shape sidecars omit the field on the wire; serde defaults
to 0, which the line-overlap filter MUST treat as a single-line
range (line..=line) rather than a span.
invocations: u64Observed invocation count for the hot path.
percentile: u8Percentile rank over this response’s hot-path distribution. 100
means the busiest, 0 means the quietest function that qualified.
actions: Vec<RuntimeCoverageAction>Suggested actions for this hot path (e.g., review-on-change). Omitted when empty.
optimization_target: Option<RuntimeCoverageOptimizationTarget>Per-call cost inputs and the speed-work score for this hot function.
Omitted when the hot path has no stable_id or no static counterpart
in this checkout.