cache-tree: trace regions for prime_cache_tree
commit0e5c95026752f0aa62e072bcb9e0a4fb93fd482e
authorDerrick Stolee <dstolee@microsoft.com>
Mon, 4 Jan 2021 03:09:14 +0000 (4 03:09 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 16 Jan 2021 07:04:32 +0000 (15 23:04 -0800)
treeaf02861c879c76a713e4b117ee6cbb3c7283975d
parent4c3e18723cc4ba7a74e067e85831530285f4dd35
cache-tree: trace regions for prime_cache_tree

Commands such as "git reset --hard" rebuild the in-memory representation
of the cache tree index extension by parsing tree objects starting at a
known root tree. The performance of this operation can vary widely
depending on the width and depth of the repository's working directory
structure. Measure the time in this operation using trace2 regions in
prime_cache_tree().

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