]> git.ipfire.org Git - thirdparty/git.git/commit - cache-tree.c
cache-tree: trace regions for I/O
authorDerrick Stolee <dstolee@microsoft.com>
Mon, 4 Jan 2021 03:09:13 +0000 (03:09 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 16 Jan 2021 07:04:21 +0000 (23:04 -0800)
commit4c3e18723cc4ba7a74e067e85831530285f4dd35
treef3abf2a4fbdad514ae218900aadbbde83fa97c20
parentfa7ca5d4fe0be77329249954a42a0d1bed5a5aa8
cache-tree: trace regions for I/O

As we write or read the cache tree index extension, it can be good to
isolate how much of the file I/O time is spent constructing this
in-memory tree from the existing index or writing it out again to the
new index file. Use trace2 regions to indicate that we are spending time
on this operation.

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