Print timer children in their recorded order

This commit is contained in:
Rui Ueyama committed 2026-09-14 22:54:34 +09:00
1 parent ed2801b547
commit fa71e1b222
1 file changed
+2 -3
+2 -3
View File
@@ -245,9 +245,8 @@ impl Timers {
" ".repeat(indent * 2),
r.name
);
let mut children = r.children.clone();
children.sort_by_key(|&c| records[c].start);
for child in children {
// Children are appended in start order under the records lock.
for &child in &r.children {
print_rec(records, child, indent + 1);
}
}