trace2: add stats for fsync operations
commit9a4987677d3f65e8cd93b9e77216f0f1026cd9b2
authorNeeraj Singh <neerajsi@microsoft.com>
Wed, 30 Mar 2022 05:06:40 +0000 (30 05:06 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 30 Mar 2022 18:15:55 +0000 (30 11:15 -0700)
treea722fc7be1905b845fd8ef5c6e99cb1c8fc71ed4
parent805e0a68082a217f0112db9ee86a022227a9c81b
trace2: add stats for fsync operations

Add some global trace2 statistics for the number of fsyncs performed
during the lifetime of a Git process.

These stats are printed as part of trace2_cmd_exit_fl, which is
presumably where we might want to print any other cross-cutting
statistics.

Signed-off-by: Neeraj Singh <neerajsi@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-compat-util.h
t/t0211/scrub_perf.perl
trace2.c
wrapper.c