summaryrefslogtreecommitdiff
path: root/fsmonitor.h
diff options
context:
space:
mode:
authorJeff Hostetler <jeffhost@microsoft.com>2021-02-03 15:34:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-02-17 01:14:34 (GMT)
commit940b94f35cf1858adf23fe939bcbbe73147ca1f3 (patch)
tree88ce2e0ee163c46f077f05c3392e1e23ad7303a7 /fsmonitor.h
parent15268d12bef12a40753767882088f4fcfefb3b2b (diff)
downloadgit-940b94f35cf1858adf23fe939bcbbe73147ca1f3.zip
git-940b94f35cf1858adf23fe939bcbbe73147ca1f3.tar.gz
git-940b94f35cf1858adf23fe939bcbbe73147ca1f3.tar.bz2
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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fsmonitor.h b/fsmonitor.h
index 739318a..7f1794b 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.