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 Sep 16, 2022
1 parent 016a14c commit b3e78be
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 @@ -1886,6 +1886,8 @@ int unpack_trees(unsigned len, struct tree_desc *t, struct unpack_trees_options
if (o->dir)
BUG("o->dir is for internal use only");

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

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

Expand Down Expand Up @@ -2084,6 +2086,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 b3e78be

Please sign in to comment.