aboutsummaryrefslogtreecommitdiffstats
path: root/t/t0211/scrub_perf.perl
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2022-10-30 21:04:42 -0400
committerTaylor Blau <me@ttaylorr.com>2022-10-30 21:04:42 -0400
commite5be3c632af4ea1ec6d9406d30f7f8cf54f5e9e7 (patch)
tree0aa932adf25a843b4d072d052f12e61f2b00d32f /t/t0211/scrub_perf.perl
parentMerge branch 'tb/shortlog-group' (diff)
parenttrace2: add global counter mechanism (diff)
downloadgit-e5be3c632af4ea1ec6d9406d30f7f8cf54f5e9e7.tar.gz
git-e5be3c632af4ea1ec6d9406d30f7f8cf54f5e9e7.zip
Merge branch 'jh/trace2-timers-and-counters'
Two new facilities, "timer" and "counter", are introduced to the trace2 API. * jh/trace2-timers-and-counters: trace2: add global counter mechanism trace2: add stopwatch timers trace2: convert ctx.thread_name from strbuf to pointer trace2: improve thread-name documentation in the thread-context trace2: rename the thread_name argument to trace2_thread_start api-trace2.txt: elminate section describing the public trace2 API tr2tls: clarify TLS terminology trace2: use size_t alloc,nr_open_regions in tr2tls_thread_ctx
Diffstat (limited to 't/t0211/scrub_perf.perl')
-rw-r--r--t/t0211/scrub_perf.perl6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t0211/scrub_perf.perl b/t/t0211/scrub_perf.perl
index 299999f0f8..7a50bae646 100644
--- a/t/t0211/scrub_perf.perl
+++ b/t/t0211/scrub_perf.perl
@@ -64,6 +64,12 @@ while (<>) {
goto SKIP_LINE;
}
}
+ elsif ($tokens[$col_event] =~ m/timer/) {
+ # This also captures "th_timer" events
+ $tokens[$col_rest] =~ s/ total:\d+\.\d*/ total:_T_TOTAL_/;
+ $tokens[$col_rest] =~ s/ min:\d+\.\d*/ min:_T_MIN_/;
+ $tokens[$col_rest] =~ s/ max:\d+\.\d*/ max:_T_MAX_/;
+ }
# t_abs and t_rel are either blank or a float. Replace the float
# with a constant for matching the HEREDOC in the test script.