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>
This commit is contained in:

committed by
Junio C Hamano

parent
15268d12be
commit
940b94f35c
@ -44,6 +44,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
|
||||
|
Reference in New Issue
Block a user