Skip to content

Commit 959dc17

Browse files
committed
feat: add trace for State::from_tree() as it's rather time-consuming
1 parent 70c7c29 commit 959dc17

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gix-index/src/init.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ mod from_tree {
3939
where
4040
Find: for<'a> FnMut(&gix_hash::oid, &'a mut Vec<u8>) -> Option<TreeRefIter<'a>>,
4141
{
42+
let _span = gix_features::trace::coarse!("gix_index::State::from_tree()");
4243
let mut buf = Vec::new();
4344
let root = find(tree, &mut buf).ok_or(breadthfirst::Error::NotFound { oid: tree.into() })?;
4445

0 commit comments

Comments
 (0)