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 dscho committed Nov 14, 2023
1 parent b802d6c commit 89b1710
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 @@ -1908,6 +1908,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 @@ -2112,6 +2114,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 89b1710

Please sign in to comment.