Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add perf flag #373

Merged
merged 1 commit into from
Sep 25, 2024
Merged

Add perf flag #373

merged 1 commit into from
Sep 25, 2024

Conversation

v01dstar
Copy link

@v01dstar v01dstar commented Sep 20, 2024

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 and IOStatsContext is associated with a bit in PerfFlag, indicating whether to enable the collection of statistics for that specific metric. Any omissions (field exists in PerfContext or IOStatsContext but does not exist in PerfFlag) will result in a compile-time error.

@ti-chi-bot ti-chi-bot bot added the dco-signoff: yes Indicates the PR's author has signed the dco. label Sep 20, 2024
@v01dstar v01dstar marked this pull request as draft September 20, 2024 22:39
@ti-chi-bot ti-chi-bot bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Sep 20, 2024
@v01dstar v01dstar marked this pull request as ready for review September 23, 2024 05:38
@ti-chi-bot ti-chi-bot bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 23, 2024
Signed-off-by: Yang Zhang <[email protected]>
@ti-chi-bot ti-chi-bot bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Sep 24, 2024
@v01dstar
Copy link
Author

/run-all-tests

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Sep 25, 2024
Copy link
Member

@Connor1996 Connor1996 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ti-chi-bot ti-chi-bot bot added the lgtm label Sep 25, 2024
Copy link

ti-chi-bot bot commented Sep 25, 2024

[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

Needs approval from an approver in each of these files:
  • OWNERS [Connor1996,LykxSassinator]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Sep 25, 2024
Copy link

ti-chi-bot bot commented Sep 25, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-09-25 06:35:46.169929464 +0000 UTC m=+1634215.910353388: ☑️ agreed by LykxSassinator.
  • 2024-09-25 08:01:52.238363291 +0000 UTC m=+1639381.978787230: ☑️ agreed by Connor1996.

@ti-chi-bot ti-chi-bot bot merged commit 50488f2 into tikv:8.10.tikv Sep 25, 2024
5 checks passed
@v01dstar v01dstar deleted the perf-flag branch September 26, 2024 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved dco-signoff: yes Indicates the PR's author has signed the dco. lgtm size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants