git-commit-vandalism/trace2
Jeff Hostetler 8ad575646c trace2: add stopwatch timers
Add stopwatch timer mechanism to Trace2.

Timers are an alternative to Trace2 Regions.  Regions are useful for
measuring the time spent in various computation phases, such as the
time to read the index, time to scan for unstaged files, time to scan
for untracked files, and etc.

However, regions are not appropriate in all places.  For example,
during a checkout, it would be very inefficient to use regions to
measure the total time spent inflating objects from the ODB from
across the entire lifetime of the process; a per-unzip() region would
flood the output and significantly slow the command; and some form of
post-processing would be requried to compute the time spent in unzip().

Timers can be used to measure a series of timer intervals and emit
a single summary event (at thread and/or process exit).

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2022-10-24 12:45:26 -07:00
..
tr2_cfg.c trace2: teach Git to log environment variables 2020-03-23 13:14:53 -07:00
tr2_cfg.h trace2: teach Git to log environment variables 2020-03-23 13:14:53 -07:00
tr2_cmd_name.c trace2: rename environment variables to GIT_TRACE2* 2019-05-28 10:20:34 -07:00
tr2_cmd_name.h
tr2_dst.c trace2: disable tr2_dst before warning on write errors 2021-11-18 22:38:15 -08:00
tr2_dst.h trace2: write discard message to sentinel files 2019-10-05 17:53:51 +09:00
tr2_sid.c Fix spelling errors in code comments 2019-11-10 16:00:54 +09:00
tr2_sid.h
tr2_sysenv.c trace2: teach Git to log environment variables 2020-03-23 13:14:53 -07:00
tr2_sysenv.h trace2: teach Git to log environment variables 2020-03-23 13:14:53 -07:00
tr2_tbuf.c trace2: make SIDs more unique 2019-04-16 13:37:07 +09:00
tr2_tbuf.h trace2: make SIDs more unique 2019-04-16 13:37:07 +09:00
tr2_tgt_event.c trace2: add stopwatch timers 2022-10-24 12:45:26 -07:00
tr2_tgt_normal.c trace2: add stopwatch timers 2022-10-24 12:45:26 -07:00
tr2_tgt_perf.c trace2: add stopwatch timers 2022-10-24 12:45:26 -07:00
tr2_tgt.h trace2: add stopwatch timers 2022-10-24 12:45:26 -07:00
tr2_tls.c trace2: add stopwatch timers 2022-10-24 12:45:26 -07:00
tr2_tls.h trace2: add stopwatch timers 2022-10-24 12:45:26 -07:00
tr2_tmr.c trace2: add stopwatch timers 2022-10-24 12:45:26 -07:00
tr2_tmr.h trace2: add stopwatch timers 2022-10-24 12:45:26 -07:00