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

util/execdetails: refactor execdetails information of runtime collect #18530

Merged
merged 15 commits into from
Jul 15, 2020

Conversation

crazycs520
Copy link
Contributor

@crazycs520 crazycs520 commented Jul 14, 2020

What problem does this PR solve?

This PR refactor execdetails information of runtime collect. This will make it easy and efficient to add special runtime information for the separated executors.

What is changed and how it works?

Before this PR, all executor runtime information was expressed by execdetails.RuntimeStats. But different executor maybe has different runtime information, then the execdetails.RuntimeStats becomes very huge and redundant.

This PR use execdetails.RuntimeStats interface instead of ``execdetails.RuntimeStats` struct.

Related changes

  • Need to cherry-pick to the release branch

Check List

Tests

  • No code, only refactor.

Side effects

  • No

Release note

  • No

@crazycs520 crazycs520 added the sig/execution SIG execution label Jul 14, 2020
@crazycs520 crazycs520 requested a review from a team as a code owner July 14, 2020 03:10
@crazycs520 crazycs520 requested review from qw4990 and removed request for a team July 14, 2020 03:10
@crazycs520
Copy link
Contributor Author

/run-all-tests

@codecov
Copy link

codecov bot commented Jul 15, 2020

Codecov Report

Merging #18530 into master will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master     #18530   +/-   ##
===========================================
  Coverage   79.7346%   79.7346%           
===========================================
  Files           541        541           
  Lines        147404     147404           
===========================================
  Hits         117532     117532           
  Misses        20499      20499           
  Partials       9373       9373           

@qw4990 qw4990 requested a review from XuHuaiyu July 15, 2020 07:03
Copy link
Contributor

@qw4990 qw4990 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-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Jul 15, 2020
@qw4990 qw4990 requested a review from SunRunAway July 15, 2020 07:50
Copy link
Contributor

@SunRunAway SunRunAway 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-srebot ti-srebot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jul 15, 2020
@SunRunAway
Copy link
Contributor

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Jul 15, 2020
@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot
Copy link
Contributor

@crazycs520 merge failed.

@crazycs520
Copy link
Contributor Author

/run-all-tests

@crazycs520
Copy link
Contributor Author

/run-check_dev_2

@crazycs520
Copy link
Contributor Author

/run-integration-copr-test

@crazycs520 crazycs520 merged commit f0e5876 into pingcap:master Jul 15, 2020
ti-srebot pushed a commit to ti-srebot/tidb that referenced this pull request Jul 15, 2020
@ti-srebot
Copy link
Contributor

cherry pick to release-4.0 in PR #18592

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants