Skip to content
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

fix: make sure TestMetrics doesn't remove state #164

Merged
merged 4 commits into from Sep 6, 2022
Merged

fix: make sure TestMetrics doesn't remove state #164

merged 4 commits into from Sep 6, 2022

Conversation

zeapoz
Copy link
Contributor

@zeapoz zeapoz commented Sep 6, 2022

This PR fixes a number of issues with our current DebuggingRecorder implementation. We now take a snapshot separately from querying the values. This fixes an issue in resistance::stress_test where we had two sequential construct_histogram queries; the initial one would erase state after its use, leading to nil data in our subsequent query. Now that state is handled separately, we also get a minor boost to performance.

@niklaslong niklaslong merged commit 9d186f1 into runziggurat:main Sep 6, 2022
@zeapoz zeapoz deleted the fix-metrics-state branch September 6, 2022 14:39
zeapoz pushed a commit to zeapoz/zcash that referenced this pull request Apr 13, 2023
fix: make sure `TestMetrics` doesn't remove state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants