mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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
This commit is contained in:
@@ -32,6 +32,16 @@ static struct tr2_counter_metadata tr2_counter_metadata[TRACE2_NUMBER_OF_COUNTER
|
||||
.name = "jumps_made",
|
||||
.want_per_thread_events = 0,
|
||||
},
|
||||
[TRACE2_COUNTER_ID_FSYNC_WRITEOUT_ONLY] = {
|
||||
.category = "fsync",
|
||||
.name = "writeout-only",
|
||||
.want_per_thread_events = 0,
|
||||
},
|
||||
[TRACE2_COUNTER_ID_FSYNC_HARDWARE_FLUSH] = {
|
||||
.category = "fsync",
|
||||
.name = "hardware-flush",
|
||||
.want_per_thread_events = 0,
|
||||
},
|
||||
|
||||
/* Add additional metadata before here. */
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user