]> git.ipfire.org Git - thirdparty/git.git/commit
preload-index: log the number of lstat calls to trace2
authorJeff Hostetler <jeffhost@microsoft.com>
Wed, 3 Feb 2021 15:34:44 +0000 (15:34 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Feb 2021 01:14:34 +0000 (17:14 -0800)
commit8c4b7503d033d8ba20771a1af8e077a79a18ce49
tree84e5f338880cc5ba3cb4d816d1bb7b0333f03561
parent4f2009dce2d270ded8bb94417becf6cc2143c70c
preload-index: log the number of lstat calls to trace2

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

FSMonitor improves the performance of commands like `git status` by
avoiding scanning the disk for changed files.  This can be seen in
`preload_index()`.  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>
preload-index.c