-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
stats: add new TextReadout stat type #10639
Merged
+617
−38
Merged
Changes from 3 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
9f37764
stats: add new TextReadout stat type
efimki 7a54fa9
Update TextReadoutImpl to have Mutex and don't have uint64 value.
efimki 00ba424
Use MutexBasicLockable.
efimki c908a4f
Address review comments.
efimki 54ed2b8
Merge remote-tracking branch 'upstream/master' into textstats
efimki 4aceda9
Replace hacky bool with hacky enum.
efimki 54c11b6
Merge remote-tracking branch 'upstream/master' into textstats
efimki e1c7113
Kick CI
efimki 1a6bcbb
Add support for text readouts to admin stats handler html and json.
efimki e54c044
Merge remote-tracking branch 'upstream/master' into textstats
efimki 8962680
Address comments.
efimki ee17a73
Fix the test.
efimki 8e0b860
Add doc to TextReadout interface definition.
efimki 9b561a0
Merge remote-tracking branch 'upstream/master' into textstats
efimki 285046f
Fix memory stats to match presubmit, update doc.
efimki 39f393b
Added TODO in stats sinks, addressed nits.
efimki 5423346
Merge remote-tracking branch 'upstream/master' into textstats
efimki 473a995
Updated comment to remove allocation failure.
efimki 8ef123f
Fix clang-tidy errors.
efimki db9064a
Remove extra virtual.
efimki 2e8a020
Kick CI
efimki File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 think allocation can fail anymore (this is a holdover from the shared mem days), right? Can you fix this above also?
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.
Hrm, good question, unfortunately I'm not familiar with previous shared mem behavior.
The TextReadout behavior is matching the Gauge, and looking at AllocatorImpl::makeTextReadout() it is possible to get nullptr if
new TextReadoutImpl()
call fails to allocate memory.This failure isn't really handled as it still inserts nullptr into |text_readouts_| which seems wrong, but maybe is a common pattern?
I'll appreciate any guidance on proper behavior.
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.
We crash on OOM so I think these comments can just be deleted. Thank you!
/wait
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.
Thanks for the confirmation! Done.