Skip to main content

rollup_cluster

Function rollup_cluster 

Source
pub fn rollup_cluster(shards: &[(PartitionAxis, StatsProfile)]) -> StatsProfile
Expand description

Roll shard profiles into one cluster profile.

S/P/O each see the full write stream under 3-way fan-out, so summing them would triple counts. Prefer the O axis profile (class counts + object CMS), then P, then S. Multiple profiles on the same axis are merged.

StatsProfile::named_graph_count lives only on S (named_graphs_catalog). After picking O/P sketches, copy that count from the S profile so GRAPH costing still sees the catalog size.