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

Report "trace late" errors in a more understandable way #129

Merged
merged 1 commit into from Mar 27, 2018

Conversation

jvns
Copy link
Collaborator

@jvns jvns commented Mar 27, 2018

If you ask rbspy to sample at too high of a rate, it'll start spitting out errors like:

Behind expected sample time by 25982 nanoseconds, results may be inaccurate. Try sampling at a lower rate with `--rate`. Current rate: 3000.

The issue with these errors right now is that it doesn't tell you the magnitude of the problem -- if 1 stack trace is late, it's not a big deal, but if 50% of stack traces are late then that means our results could be pretty inaccurate.

This PR changes the reporting to report the percentage of stack traces that were collected late. We only print out a percentage if it's more than 0.5%.

@jvns jvns force-pushed the report-timing-error-better branch from b47d601 to f5dfae8 Compare March 27, 2018 21:57
@jvns jvns merged commit 3ec6a15 into master Mar 27, 2018
@jvns jvns deleted the report-timing-error-better branch March 27, 2018 21:58
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

1 participant