Closed v01dstar closed 2 months ago
/run-all-tests
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: Connor1996, LykxSassinator
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Timeline:
2024-09-25 06:35:46.169929464 +0000 UTC m=+1634215.910353388
: :ballot_box_with_check: agreed by LykxSassinator.2024-09-25 08:01:52.238363291 +0000 UTC m=+1639381.978787230
: :ballot_box_with_check: agreed by Connor1996.
This PR includes:
Adding
PerfFlag
: Collect statistics for specific metrics while ignoring others to reduce performance overhead from excessive tracking. See PingCAP internal design doc.Each metric in
PerfContext
andIOStatsContext
is associated with a bit inPerfFlag
, indicating whether to enable the collection of statistics for that specific metric. Any omissions (field exists inPerfContext
orIOStatsContext
but does not exist inPerfFlag
) will result in a compile-time error.