Widen dispatch cluster counts for full control lane
This commit is contained in:
parent
a67b5d23ae
commit
7c83b214a9
6 changed files with 2091 additions and 0 deletions
|
|
@ -24,6 +24,12 @@ pub(crate) fn build_runtime_compact_event_dispatch_cluster_report(
|
|||
let mut dispatch_strip_payload_families = BTreeMap::<String, usize>::new();
|
||||
let mut dispatch_descriptor_occurrence_counts = BTreeMap::<String, usize>::new();
|
||||
let mut dispatch_descriptor_map_counts = BTreeMap::<String, usize>::new();
|
||||
let mut dispatch_signature_condition_cluster_occurrence_counts =
|
||||
BTreeMap::<String, usize>::new();
|
||||
let mut dispatch_signature_condition_cluster_map_counts = BTreeMap::<String, usize>::new();
|
||||
let mut dispatch_descriptor_map_paths = BTreeMap::<String, BTreeSet<String>>::new();
|
||||
let mut dispatch_signature_condition_cluster_map_paths =
|
||||
BTreeMap::<String, BTreeSet<String>>::new();
|
||||
let mut add_building_dispatch_record_count = 0usize;
|
||||
let mut add_building_dispatch_records_with_trigger_kind = 0usize;
|
||||
let mut add_building_dispatch_records_missing_trigger_kind = 0usize;
|
||||
|
|
@ -58,6 +64,7 @@ pub(crate) fn build_runtime_compact_event_dispatch_cluster_report(
|
|||
|
||||
let mut map_dispatch_strip_record_count = 0usize;
|
||||
let mut map_descriptor_keys = BTreeSet::<String>::new();
|
||||
let mut map_signature_condition_clusters = BTreeSet::<String>::new();
|
||||
let mut map_add_building_descriptor_keys = BTreeSet::<String>::new();
|
||||
let mut map_add_building_row_shapes = BTreeSet::<String>::new();
|
||||
let mut map_add_building_signature_families = BTreeSet::<String>::new();
|
||||
|
|
@ -138,7 +145,19 @@ pub(crate) fn build_runtime_compact_event_dispatch_cluster_report(
|
|||
*dispatch_descriptor_occurrence_counts
|
||||
.entry(descriptor_key.clone())
|
||||
.or_insert(0) += 1;
|
||||
dispatch_descriptor_map_paths
|
||||
.entry(descriptor_key.clone())
|
||||
.or_default()
|
||||
.insert(path.display().to_string());
|
||||
map_descriptor_keys.insert(descriptor_key.clone());
|
||||
*dispatch_signature_condition_cluster_occurrence_counts
|
||||
.entry(signature_condition_cluster_key.clone())
|
||||
.or_insert(0) += 1;
|
||||
dispatch_signature_condition_cluster_map_paths
|
||||
.entry(signature_condition_cluster_key.clone())
|
||||
.or_default()
|
||||
.insert(path.display().to_string());
|
||||
map_signature_condition_clusters.insert(signature_condition_cluster_key.clone());
|
||||
if compact_event_dispatch_add_building_descriptor_id(descriptor_id) {
|
||||
record_has_add_building = true;
|
||||
add_building_signature_condition_clusters
|
||||
|
|
@ -203,6 +222,11 @@ pub(crate) fn build_runtime_compact_event_dispatch_cluster_report(
|
|||
.entry(descriptor_key)
|
||||
.or_insert(0) += 1;
|
||||
}
|
||||
for signature_condition_cluster in map_signature_condition_clusters {
|
||||
*dispatch_signature_condition_cluster_map_counts
|
||||
.entry(signature_condition_cluster)
|
||||
.or_insert(0) += 1;
|
||||
}
|
||||
for descriptor_key in map_add_building_descriptor_keys {
|
||||
*add_building_descriptor_map_counts
|
||||
.entry(descriptor_key)
|
||||
|
|
@ -264,6 +288,20 @@ pub(crate) fn build_runtime_compact_event_dispatch_cluster_report(
|
|||
(cluster.clone(), filtered)
|
||||
})
|
||||
.collect::<BTreeMap<_, _>>();
|
||||
let dispatch_signature_condition_cluster_descriptor_keys =
|
||||
signature_condition_cluster_descriptor_keys
|
||||
.iter()
|
||||
.map(|(cluster, keys)| (cluster.clone(), keys.iter().cloned().collect::<Vec<_>>()))
|
||||
.collect::<BTreeMap<_, _>>();
|
||||
let dispatch_descriptor_map_paths = dispatch_descriptor_map_paths
|
||||
.into_iter()
|
||||
.map(|(descriptor_key, paths)| (descriptor_key, paths.into_iter().collect::<Vec<_>>()))
|
||||
.collect::<BTreeMap<_, _>>();
|
||||
let dispatch_signature_condition_cluster_map_paths =
|
||||
dispatch_signature_condition_cluster_map_paths
|
||||
.into_iter()
|
||||
.map(|(cluster, paths)| (cluster, paths.into_iter().collect::<Vec<_>>()))
|
||||
.collect::<BTreeMap<_, _>>();
|
||||
let add_building_descriptor_map_paths = add_building_descriptor_map_paths
|
||||
.into_iter()
|
||||
.map(|(descriptor_key, paths)| (descriptor_key, paths.into_iter().collect::<Vec<_>>()))
|
||||
|
|
@ -284,6 +322,11 @@ pub(crate) fn build_runtime_compact_event_dispatch_cluster_report(
|
|||
dispatch_strip_payload_families,
|
||||
dispatch_descriptor_occurrence_counts,
|
||||
dispatch_descriptor_map_counts,
|
||||
dispatch_descriptor_map_paths,
|
||||
dispatch_signature_condition_cluster_occurrence_counts,
|
||||
dispatch_signature_condition_cluster_map_counts,
|
||||
dispatch_signature_condition_cluster_map_paths,
|
||||
dispatch_signature_condition_cluster_descriptor_keys,
|
||||
dispatch_descriptor_occurrences,
|
||||
unknown_descriptor_ids,
|
||||
unknown_descriptor_special_condition_label_matches,
|
||||
|
|
|
|||
|
|
@ -73,6 +73,11 @@ pub(crate) struct RuntimeCompactEventDispatchClusterReport {
|
|||
pub(crate) dispatch_strip_payload_families: BTreeMap<String, usize>,
|
||||
pub(crate) dispatch_descriptor_occurrence_counts: BTreeMap<String, usize>,
|
||||
pub(crate) dispatch_descriptor_map_counts: BTreeMap<String, usize>,
|
||||
pub(crate) dispatch_descriptor_map_paths: BTreeMap<String, Vec<String>>,
|
||||
pub(crate) dispatch_signature_condition_cluster_occurrence_counts: BTreeMap<String, usize>,
|
||||
pub(crate) dispatch_signature_condition_cluster_map_counts: BTreeMap<String, usize>,
|
||||
pub(crate) dispatch_signature_condition_cluster_map_paths: BTreeMap<String, Vec<String>>,
|
||||
pub(crate) dispatch_signature_condition_cluster_descriptor_keys: BTreeMap<String, Vec<String>>,
|
||||
pub(crate) dispatch_descriptor_occurrences:
|
||||
BTreeMap<String, Vec<RuntimeCompactEventDispatchClusterOccurrence>>,
|
||||
pub(crate) unknown_descriptor_ids: Vec<u32>,
|
||||
|
|
@ -111,6 +116,11 @@ pub(crate) struct RuntimeCompactEventDispatchClusterCountsReport {
|
|||
pub(crate) dispatch_strip_payload_families: BTreeMap<String, usize>,
|
||||
pub(crate) dispatch_descriptor_occurrence_counts: BTreeMap<String, usize>,
|
||||
pub(crate) dispatch_descriptor_map_counts: BTreeMap<String, usize>,
|
||||
pub(crate) dispatch_descriptor_map_paths: BTreeMap<String, Vec<String>>,
|
||||
pub(crate) dispatch_signature_condition_cluster_occurrence_counts: BTreeMap<String, usize>,
|
||||
pub(crate) dispatch_signature_condition_cluster_map_counts: BTreeMap<String, usize>,
|
||||
pub(crate) dispatch_signature_condition_cluster_map_paths: BTreeMap<String, Vec<String>>,
|
||||
pub(crate) dispatch_signature_condition_cluster_descriptor_keys: BTreeMap<String, Vec<String>>,
|
||||
pub(crate) unknown_descriptor_ids: Vec<u32>,
|
||||
pub(crate) unknown_descriptor_special_condition_label_matches: Vec<String>,
|
||||
pub(crate) add_building_dispatch_record_count: usize,
|
||||
|
|
|
|||
|
|
@ -92,6 +92,15 @@ pub(crate) fn inspect_compact_event_dispatch_cluster_counts(
|
|||
dispatch_strip_payload_families: report.dispatch_strip_payload_families,
|
||||
dispatch_descriptor_occurrence_counts: report.dispatch_descriptor_occurrence_counts,
|
||||
dispatch_descriptor_map_counts: report.dispatch_descriptor_map_counts,
|
||||
dispatch_descriptor_map_paths: report.dispatch_descriptor_map_paths,
|
||||
dispatch_signature_condition_cluster_occurrence_counts: report
|
||||
.dispatch_signature_condition_cluster_occurrence_counts,
|
||||
dispatch_signature_condition_cluster_map_counts: report
|
||||
.dispatch_signature_condition_cluster_map_counts,
|
||||
dispatch_signature_condition_cluster_map_paths: report
|
||||
.dispatch_signature_condition_cluster_map_paths,
|
||||
dispatch_signature_condition_cluster_descriptor_keys: report
|
||||
.dispatch_signature_condition_cluster_descriptor_keys,
|
||||
unknown_descriptor_ids: report.unknown_descriptor_ids,
|
||||
unknown_descriptor_special_condition_label_matches: report
|
||||
.unknown_descriptor_special_condition_label_matches,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue