cache-tree: use trace2 in cache_tree_update()

This matches a trace_performance_enter()/trace_performance_leave() pair
added by 0d1ed59 (unpack-trees: add performance tracing, 2018-08-18).

Signed-off-by: Derrick Stolee <>
Signed-off-by: Junio C Hamano <>
This commit is contained in:
Derrick Stolee 2021-01-04 03:09:12 +00:00 committed by Junio C Hamano
parent c338898a47
commit fa7ca5d4fe
1 changed files with 2 additions and 0 deletions

View File

@ -442,7 +442,9 @@ int cache_tree_update(struct index_state *istate, int flags)
if (i)
return i;
trace2_region_enter("cache_tree", "update", the_repository);
i = update_one(it, cache, entries, "", 0, &skip, flags);
trace2_region_leave("cache_tree", "update", the_repository);
if (i < 0)
return i;