From 9a4987677d3f65e8cd93b9e77216f0f1026cd9b2 Mon Sep 17 00:00:00 2001 From: Neeraj Singh Date: Wed, 30 Mar 2022 05:06:40 +0000 Subject: 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 Signed-off-by: Junio C Hamano --- t/t0211/scrub_perf.perl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 't') diff --git a/t/t0211/scrub_perf.perl b/t/t0211/scrub_perf.perl index d164b750ff..299999f0f8 100644 --- a/t/t0211/scrub_perf.perl +++ b/t/t0211/scrub_perf.perl @@ -59,6 +59,10 @@ while (<>) { # and highly variable. Just omit them. goto SKIP_LINE; } + if ($tokens[$col_category] =~ m/fsync/) { + # fsync events aren't interesting for the test + goto SKIP_LINE; + } } # t_abs and t_rel are either blank or a float. Replace the float -- cgit v1.2.3