mirror of
https://github.com/martinvonz/jj.git
synced 2024-09-21 18:58:03 +03:00
working_copy: add trace scope to tree-writing call
Writing the tree can probably take a bit of time when the working copy has changed.
This commit is contained in:
parent
d06f51a88c
commit
16d00581f6
@ -694,7 +694,9 @@ impl TreeState {
|
||||
}
|
||||
});
|
||||
let has_changes = tree_builder.has_overrides();
|
||||
trace_span!("write tree").in_scope(|| {
|
||||
self.tree_id = tree_builder.write_tree();
|
||||
});
|
||||
self.watchman_clock = watchman_clock;
|
||||
Ok(has_changes || fsmonitor_clock_needs_save)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user