]> git.ipfire.org Git - thirdparty/git.git/commit - unpack-trees.c
unpack-trees: add trace2 regions
authorDerrick Stolee <dstolee@microsoft.com>
Mon, 4 Jan 2021 03:09:11 +0000 (03:09 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 4 Jan 2021 23:23:08 +0000 (15:23 -0800)
commitc338898a47829cf27ebccf5415c308dd59f9d3a6
tree6690edab8ffbb3554d165d5010c54f8c73c28375
parentda8be8ced672fc00d5dea8a95d04854b2e35d925
unpack-trees: add trace2 regions

The unpack_trees() method is quite complicated and its performance can
change dramatically depending on how it is used. We already have some
performance tracing regions, but they have not been updated to the
trace2 API. Do so now.

We already have trace2 regions in unpack_trees.c:clear_ce_flags(), which
uses a linear scan through the index without recursing into trees.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
unpack-trees.c