pub fn write_rule_trace_aggregates( path: &Path, counts: &BTreeMap<String, u64>, ) -> Result<()>
Write a snapshot of the counts, ordered by descending count and then rule name.