diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-08-02 19:37:23 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-08-02 19:37:23 +0300 |
commit | 52d9dc20e1ddd5ac6b9e9113983b2f8d6977e6b0 (patch) | |
tree | e40cb3ecdc5a5620619c411e9b013718b9a300f4 /trace2.h | |
parent | 99acb0fa54775a383cab70a6e662e45180dee3f0 (diff) | |
parent | a27eecea75b3858b4052b191143f144a7e966869 (diff) |
Merge branch 'bb/use-trace2-counters-for-fsync-stats'
Instead of inventing a custom counter variables for debugging,
use existing trace2 facility in the fsync customization codepath.
* bb/use-trace2-counters-for-fsync-stats:
wrapper: use trace2 counters to collect fsync stats
Diffstat (limited to 'trace2.h')
-rw-r--r-- | trace2.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -554,6 +554,10 @@ enum trace2_counter_id { TRACE2_COUNTER_ID_PACKED_REFS_JUMPS, /* counts number of jumps */ + /* counts number of fsyncs */ + TRACE2_COUNTER_ID_FSYNC_WRITEOUT_ONLY, + TRACE2_COUNTER_ID_FSYNC_HARDWARE_FLUSH, + /* Add additional counter definitions before here. */ TRACE2_NUMBER_OF_COUNTERS }; |