diff options
author | Jeff Hostetler <jeffhost@microsoft.com> | 2021-02-03 16:34:47 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-02-17 02:14:34 +0100 |
commit | 940b94f35cf1858adf23fe939bcbbe73147ca1f3 (patch) | |
tree | 88ce2e0ee163c46f077f05c3392e1e23ad7303a7 /fsmonitor.h | |
parent | read-cache: log the number of scanned files to trace2 (diff) | |
download | git-940b94f35cf1858adf23fe939bcbbe73147ca1f3.tar.xz git-940b94f35cf1858adf23fe939bcbbe73147ca1f3.zip |
fsmonitor: log invocation of FSMonitor hook to trace2
Let's measure the time taken to request and receive FSMonitor data
via the hook API and the size of the response.
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Reviewed-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fsmonitor.h')
-rw-r--r-- | fsmonitor.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fsmonitor.h b/fsmonitor.h index 739318ab6d..7f1794b90b 100644 --- a/fsmonitor.h +++ b/fsmonitor.h @@ -45,6 +45,11 @@ void tweak_fsmonitor(struct index_state *istate); void refresh_fsmonitor(struct index_state *istate); /* + * Does the received result contain the "trivial" response? + */ +int fsmonitor_is_trivial_response(const struct strbuf *query_result); + +/* * Set the given cache entries CE_FSMONITOR_VALID bit. This should be * called any time the cache entry has been updated to reflect the * current state of the file on disk. |