-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
executor: tiny refactor the runtimeStats
collection code
#10917
Conversation
remove redundant code and do it in one place
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests |
Codecov Report
@@ Coverage Diff @@
## master #10917 +/- ##
================================================
+ Coverage 81.0421% 81.0853% +0.0431%
================================================
Files 419 419
Lines 88934 88878 -56
================================================
- Hits 72074 72067 -7
+ Misses 11621 11588 -33
+ Partials 5239 5223 -16 |
Codecov Report
@@ Coverage Diff @@
## master #10917 +/- ##
===========================================
Coverage 81.3542% 81.3542%
===========================================
Files 419 419
Lines 90192 90192
===========================================
Hits 73375 73375
Misses 11571 11571
Partials 5246 5246 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
What problem does this PR solve?
Better code
What is changed and how it works?
Instead of calling
if runtimeStats != nil ...
check in every executor function,we can just do it in the
executor.Next
function.Remove redundant code and put the check in one place.
Check List
Tests