-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Convert more timing code to <chrono> #2237
Conversation
HowardHinnant
commented
Sep 29, 2017
- LoadMonitor
- Entry
- Import
Codecov Report
@@ Coverage Diff @@
## develop #2237 +/- ##
===========================================
- Coverage 70.11% 70.08% -0.03%
===========================================
Files 689 689
Lines 50800 50800
===========================================
- Hits 35617 35602 -15
- Misses 15183 15198 +15
Continue to review full report at Codecov.
|
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.
👍 Left one nit, but no change needed if the nit doesn't bother you.
src/ripple/app/main/Application.cpp
Outdated
|
||
lastSample_ = ms; | ||
|
||
if (ms.count() >= 10) | ||
if (ms >= 10ms) |
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.
Nit: We have a variable ms
and a suffix ms
, so we're seeing code like ms >= 10ms
. The code is clear, however I it does seem a little weird. Maybe rename the ms
variable?
src/ripple/core/impl/JobQueue.cpp
Outdated
|
||
if (ms.count() >= 10) | ||
if (ms >= 10ms) |
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.
Same nit here: we have both a var ms
and a suffix ms
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.
👍
src/ripple/core/JobTypes.h
Outdated
add( jtNS_ASYNC_READ, "AsyncReadNode", 0, true, 0, 0); | ||
add( jtNS_WRITE, "WriteNode", 0, true, 0, 0); | ||
add( jtPACK, "makeFetchPack", 1, false, 0ms, 0ms); | ||
add( jtPUBOLDLEDGER, "publishAcqLedger", 2, false, 10000ms, 15000ms); |
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.
Nice readability improvement!
7630c58
to
3e874d3
Compare
Rebased to 0.80.0 and squashed. |
* LoadMonitor * Entry * Import
3e874d3
to
48e67f6
Compare
Rebased to 0.80.1 |
In 0.90.0-b1 |