fix(#1179): coalesce bash-task-* wake sources in stats
This commit is contained in:
parent
5c2f9dcf11
commit
3ccfc647f7
1 changed files with 6 additions and 1 deletions
|
|
@ -245,7 +245,12 @@ fn snapshot(path: &Path, window: Window) -> Result<Snapshot> {
|
||||||
*acc.model_counts.entry(r.model.clone()).or_insert(0) += 1;
|
*acc.model_counts.entry(r.model.clone()).or_insert(0) += 1;
|
||||||
|
|
||||||
all_durations.push(r.duration_ms.max(0));
|
all_durations.push(r.duration_ms.max(0));
|
||||||
*wake_totals.entry(r.wake_from).or_insert(0) += 1;
|
let wake_key = if r.wake_from.starts_with("bash-task-") {
|
||||||
|
"bash-task".to_owned()
|
||||||
|
} else {
|
||||||
|
r.wake_from
|
||||||
|
};
|
||||||
|
*wake_totals.entry(wake_key).or_insert(0) += 1;
|
||||||
*result_totals.entry(r.result_kind).or_insert(0) += 1;
|
*result_totals.entry(r.result_kind).or_insert(0) += 1;
|
||||||
model_set.insert(r.model);
|
model_set.insert(r.model);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue