]> granicus.if.org Git - git/commit
trace2: add region in clear_ce_flags
authorJeff Hostetler <jeffhost@microsoft.com>
Mon, 21 Oct 2019 13:56:16 +0000 (13:56 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Oct 2019 03:42:05 +0000 (12:42 +0900)
commitd97f70b862f422dd1e765010a4d4a19456d2347b
treeb61e1a39a7ff92777c4c724f16a16a9ac7ffa03c
parent043e1a3d9acd03697bae74ba8cd90f7e0d52aa29
trace2: add region in clear_ce_flags

When Git updates the working directory with the sparse-checkout
feature enabled, the unpack_trees() method calls clear_ce_flags()
to update the skip-wortree bits on the cache entries. This
check can be expensive, depending on the patterns used.

Add trace2 regions around the method, including some flag
information, so we can get granular performance data during
experiments. This data will be used to measure improvements
to the pattern-matching algorithms for sparse-checkout.

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