mirror of
https://github.com/git/git
synced 2024-11-05 18:59:29 +00:00
81071626ba
Add global counters mechanism to Trace2. The Trace2 counters mechanism adds the ability to create a set of global counter variables and an API to increment them efficiently. Counters can optionally report per-thread usage in addition to the sum across all threads. Counter events are emitted to the Trace2 logs when a thread exits and at process exit. Counters are an alternative to `data` and `data_json` events. Counters are useful when you want to measure something across the life of the process, when you don't want per-measurement events for performance reasons, when the data does not fit conveniently within a region, or when your control flow does not easily let you write the final total. For example, you might use this to report the number of calls to unzip() or the number of de-delta steps during a checkout. 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_ctr.c | ||
tr2_ctr.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.h | ||
tr2_tgt_event.c | ||
tr2_tgt_normal.c | ||
tr2_tgt_perf.c | ||
tr2_tls.c | ||
tr2_tls.h | ||
tr2_tmr.c | ||
tr2_tmr.h |