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

Record single metric sample value zero #86

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Record single metric sample value zero #86

merged 1 commit into from
Nov 13, 2024

Conversation

rafaelfolco
Copy link
Contributor

This results in incorrectly generated post-processing metric files. Only skip it as non-existent for throughput class.

Record single metric sample value zero when dont_delete=True.
Default behavior is to consider the single sample metric value
zero as non-existing (dont_delete=False).
This should not be a problem for throughput metric class but it
might incorrectly generate post-processing metric files for other
classes like 'count' type, e.g. latency.
rafaelfolco added a commit to perftool-incubator/bench-hwnoise that referenced this pull request Nov 12, 2024
Copy link
Contributor

@k-rister k-rister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we replicate some of the comments from the Perl version here for better understanding/documentation?

@rafaelfolco
Copy link
Contributor Author

Can we replicate some of the comments from the Perl version here for better understanding/documentation?
Which comment are your referring to?
The comments from the part I am changing are identical:
Perl version: https://github.com/perftool-incubator/toolbox/blob/main/perl/toolbox/metrics.pm#L106-L107
# This metric has only 1 sample and the value is 0, so it "did not do any work". Therefore, we can just
# not create this metric at all.

@k-rister
Copy link
Contributor

Can we replicate some of the comments from the Perl version here for better understanding/documentation?
Which comment are your referring to?
The comments from the part I am changing are identical:
Perl version: https://github.com/perftool-incubator/toolbox/blob/main/perl/toolbox/metrics.pm#L106-L107

This metric has only 1 sample and the value is 0, so it "did not do any work". Therefore, we can just

not create this metric at all.

I must be hallucinating. I really thought it had more details than that. Nevermind.

@rafaelfolco rafaelfolco merged commit 83a7f68 into main Nov 13, 2024
148 checks passed
@rafaelfolco rafaelfolco deleted the metric-zero branch November 13, 2024 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants