mirror of
https://github.com/rui314/mold.git
synced 2026-11-09 04:49:33 -10:00
Print timer children in their recorded order
This commit is contained in:
1 parent
ed2801b547
commit
fa71e1b222
1 file changed
+2
-3
+2
-3
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user