pub struct GraphProfileResult {
pub node_count: usize,
pub edge_count: usize,
pub subgraph_count: usize,
pub nodes: Vec<NodeProfile>,
pub hotspots: Hotspots,
pub orphans: Vec<NodeProfile>,
pub orphan_effects: Vec<NodeProfile>,
}Expand description
Aggregate profile returned by Graph::resource_profile. Mirrors
the post-D284 narrower
packages/parity-tests/impls/types.ts
ImplGraphProfileResult shape (no totalValueSizeBytes, no
hotspots.byValueSize). JSON keys are camelCase to match the
cross-arm parity wire contract.
Fields§
§node_count: usizeTotal local node count (NOT recursive into mounted children).
edge_count: usizeTotal local edge count.
subgraph_count: usizeLocal mounted subgraph count.
nodes: Vec<NodeProfile>All local node profiles in insertion order.
hotspots: HotspotsTop-N hotspots by dimension. Each list is sorted descending +
truncated to top_n (default 10).
orphans: Vec<NodeProfile>Every orphan across types — effect, derived, producer
with zero subscribers. See NodeProfile::orphan_kind.
orphan_effects: Vec<NodeProfile>Effect nodes with no external subscribers (legacy field; subset
of Self::orphans kept separately for back-compat with the
pure-ts orphanEffects consumer surface).
Trait Implementations§
Source§impl Clone for GraphProfileResult
impl Clone for GraphProfileResult
Source§fn clone(&self) -> GraphProfileResult
fn clone(&self) -> GraphProfileResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more