p7519: add trace logging during perf test
commit4f2009dce2d270ded8bb94417becf6cc2143c70c
authorJeff Hostetler <jeffhost@microsoft.com>
Wed, 3 Feb 2021 15:34:43 +0000 (3 15:34 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Feb 2021 01:14:34 +0000 (16 17:14 -0800)
tree1ca725a66929a65e8bc2a0d98be514f89faa0853
parenta7556c3bde48b9266f11794a20d12719269becd3
p7519: add trace logging during perf test

Add optional trace logging to allow us to better compare performance of
various fsmonitor providers and compare results with non-fsmonitor runs.

Currently, this includes Trace2 logging, but may be extended to include
other trace targets, such as GIT_TRACE_FSMONITOR if desired.

Using this logging helped me explain an odd behavior on MacOS where the
kernel was dropping events and causing the hook to Watchman to timeout.

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Reviewed-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/perf/.gitignore
t/perf/Makefile
t/perf/p7519-fsmonitor.sh