Skip to content

Commit

Permalink
trace2:gvfs:experiment: add region around unpack_trees()
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
  • Loading branch information
jeffhostetler authored and mjcheetham committed Jul 29, 2024
1 parent bec8264 commit d019329
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions unpack-trees.c
Original file line number Diff line number Diff line change
Expand Up @@ -1910,6 +1910,8 @@ int unpack_trees(unsigned len, struct tree_desc *t, struct unpack_trees_options
if (o->df_conflict_entry)
BUG("o->df_conflict_entry is an output only field");

trace2_region_enter("exp", "unpack_trees", NULL);

trace_performance_enter();
trace2_region_enter("unpack_trees", "unpack_trees", the_repository);

Expand Down Expand Up @@ -2114,6 +2116,7 @@ int unpack_trees(unsigned len, struct tree_desc *t, struct unpack_trees_options
}
trace2_region_leave("unpack_trees", "unpack_trees", the_repository);
trace_performance_leave("unpack_trees");
trace2_region_leave("exp", "unpack_trees", NULL);
return ret;

return_failed:
Expand Down

0 comments on commit d019329

Please sign in to comment.