-
Notifications
You must be signed in to change notification settings - Fork 15
Adds more stats. #358
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
Adds more stats. #358
Conversation
stubz151
left a comment
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, just 2 minor comments.
| } | ||
|
|
||
| @Test | ||
| void testContains() { |
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.
I don't really get the point of this test
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.
had to add it to ensure test coverage passes
| Math.max(maxReadLength, sequentialReadProgression.getSizeForGeneration(generation)); | ||
|
|
||
| // Record any range extension due to sequential prefetching | ||
| requestCallback.onBlockPrefetch(endPos + 1, truncatePos(pos + maxReadLength - 1)); |
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.
can u explain this a bit more for me?
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.
these are the number of extra bytes AAL requested that the user did not ask for.
the user request was for till endPos. And then AAL extended the request due to sequential prefetching, so we report these as prefetched bytes
Description of change
Adds in support for some additional statistics
I want to add in some more stats around readVectored(), but will do that once the request coalescing PR is in.
Relevant issues
Does this contribution introduce any breaking changes to the existing APIs or behaviors?
Does this contribution introduce any new public APIs or behaviors?
How was the contribution tested?
Does this contribution need a changelog entry?
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I agree to the terms of the Developer Certificate of Origin (DCO).