fn register_tree_metric(
tree: &Arc<NativeTree>,
metric: &Arc<ExecutionPlanMetricsSet>,
)Expand description
Registers the tree tree runs as one of the metrics metric holds.
What is registered reads the tree when it is asked for, because a node’s figures are only final
once the tree ran, and ANALYZE reads them after it did. The reader holds metric weakly: the
set holds the reader, so a strong handle would keep the set alive for as long as the reader.