-
Notifications
You must be signed in to change notification settings - Fork 5.3k
stats: add iterate methods for Scope, and a lazy find-from-string implementation. #12128
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
a47dd7b
initial checkin for Stats::Scope::iterate() methods.
jmarantz 41fe98d
add basic tests for counters.
jmarantz eea8398
filter isoalted stats iteration over scopes based on name prefix, for…
jmarantz 360aa34
remove slowFind* methods.
jmarantz f35101d
add missing test cc file.
jmarantz c75cfee
Adds a test for CachedReference.
jmarantz ff5c9bd
add tests that incorporate dynamics and all the stat types.
jmarantz 2c95ffd
consolidate tests and expand coverage.
jmarantz dc36edc
doc and cleanup.
jmarantz 64fc67f
CachedReference::find should return an optional<ref>, not an optional…
jmarantz 537f553
clean up template usage.
jmarantz f0bf7d8
remove an unused function; and make a private function private.
jmarantz 7dd34d7
fix integration test API
jmarantz 4a1edb1
back out accidental update to bazelversion.
jmarantz fbf6d9b
Merge branch 'master' into stats-iterate
jmarantz 4dd49d1
Merge branch 'master' into stats-iterate
jmarantz 7a0af66
review comments
jmarantz 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Seems like find() should really only be called once. Can we assert somehow that
stat_has never been set?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.
The intended semantics here are that
find()does caching itself so it's fine to call it lots of times.I'm not clear on what you are suggesting as an alternative?
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 just meant that after you call find() once, the result is cached. Sorry I think I didn't give a full comment. Should there be some different between initialize() and find() in that initialize() is called once and find() should be called after initialize()? I don't feel strongly about it. In that case you could s/find/get.
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.
changed to
get()