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: Don't break at calculating log of numbers close to zero #103

Merged
merged 1 commit into from
Mar 6, 2024

Commits on Mar 6, 2024

  1. Correct histograms for zero byte allocations

    If the program performs zero byte allocations, pretend that they were
    one byte allocations instead. This way they'll be counted in the lowest
    histogram bucket, as they should be, but we won't attempt to call
    `math.log(0)` and get a math domain error.
    
    Signed-off-by: Matt Wozniski <[email protected]>
    godlygeek committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    885c19b View commit details
    Browse the repository at this point in the history