read-cache: log the number of lstat calls to trace2
authorJeff Hostetler <redacted>
Wed, 3 Feb 2021 15:34:45 +0000 (15:34 +0000)
committerJunio C Hamano <redacted>
Wed, 17 Feb 2021 01:14:34 +0000 (17:14 -0800)
commita98e0f2d317818bfcb7f3c9cf53dfad2334e8ca7
treea66ef992eb272cec6e024314a88cc7e986e6744b
parent8c4b7503d033d8ba20771a1af8e077a79a18ce49
read-cache: log the number of lstat calls to trace2

Report the total number of calls made to lstat() inside of refresh_index().

FSMonitor improves the performance of commands like `git status` by
avoiding scanning the disk for changed files.  This can be seen in
`refresh_index()`.  Let's measure this.

Signed-off-by: Jeff Hostetler <redacted>
Reviewed-by: Taylor Blau <redacted>
Signed-off-by: Junio C Hamano <redacted>
read-cache.c
git clone https://git.99rst.org/PROJECT