-
Notifications
You must be signed in to change notification settings - Fork 123
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
feat(#305)!: Expose new PiscinaHistogram
abstraction
#723
Conversation
Should we automatically reset the histogram at some interval? |
@@ -110,6 +110,53 @@ Use caution when setting resource limits. Setting limits that are too low may | |||
result in the `Piscina` worker threads being unusable. | |||
::: | |||
|
|||
## `PiscinaHistogram` | |||
|
|||
The `PiscinaHistogram` allows you to access the histogram data for the pool of worker threads. |
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 we have a code sample on how users would do it in userland?
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.
Done, let me know if that's enough or if there's a something else to cover
I don't think so, since we are storing distribution data (mean, avg, stddev) |
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.
I think the PR title doesn't express entirely what this PR does. It also exposes the PiscinaHistogram
PiscinaHistogram
abstraction
Closes #305