read-cache: log the number of scanned files to trace2
authorJeff Hostetler <jeffhost@microsoft.com>
Wed, 3 Feb 2021 15:34:46 +0000 (15:34 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Feb 2021 01:14:34 +0000 (17:14 -0800)
commit15268d12bef12a40753767882088f4fcfefb3b2b
treeb49f07cb2274b160b09b40e1afe42f78f0bdb67b
parenta98e0f2d317818bfcb7f3c9cf53dfad2334e8ca7
read-cache: log the number of scanned files to trace2

Report the number of files in the working directory that were read and
their hashes verified in `refresh_index()`.

FSMonitor improves the performance of commands like `git status` by
avoiding scanning the disk for changed files.  Let's measure this.

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Reviewed-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
read-cache.c