8ad575646c
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> |
||
---|---|---|
.. | ||
tr2_cfg.c | ||
tr2_cfg.h | ||
tr2_cmd_name.c | ||
tr2_cmd_name.h | ||
tr2_dst.c | ||
tr2_dst.h | ||
tr2_sid.c | ||
tr2_sid.h | ||
tr2_sysenv.c | ||
tr2_sysenv.h | ||
tr2_tbuf.c | ||
tr2_tbuf.h | ||
tr2_tgt_event.c | ||
tr2_tgt_normal.c | ||
tr2_tgt_perf.c | ||
tr2_tgt.h | ||
tr2_tls.c | ||
tr2_tls.h | ||
tr2_tmr.c | ||
tr2_tmr.h |