-
Notifications
You must be signed in to change notification settings - Fork 127
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
"offwaketime" output causes 'attempt to multiply with overflow' #170
Comments
Hmm, looking at your
They have sample counts that are far higher than they should be. Not sure if this is an artifact of how The issue occurs here: Line 539 in 3c2f780
Probably in |
Oh, I see! Thank you very much, that explains why I am not seeing any other stackstraces in vanilla flamegraph. The vanilla flamegraph manages to calculate this, but probably because of how much the columns takes, it just gets rid of any other data (i.e. because they would be too thin otherwise). Removing the last four lines makes it work.
Yeah, I'm wondering if it would make sense to print a warning that events less then X are too small to be seen on the flamegraph? That may help to someone in the future, because apparently |
Rather I think "Some events are too small to be visible in the svg. The least quantity that will be in the output is X". |
Hmm, that's an interesting idea. You can already adjust at what point things get eliminated from the flamegraph with |
Worth noting btw, initially I have built it in release, and it has shown just invalid top-half of stacktraces. Related report on vanilla flamegraph
Steps to reproduce
bcc-tools
are installed (or alternatively use the attachedout.txt
).cargo build
to compile the project in debug modesudo /usr/share/bcc/tools/offwaketime -f 15 > /tmp/out.txt
, (or alternatively use the attachedout.txt
).target/debug/inferno-flamegraph /tmp/out.txt > /tmp/out.svg
An
out.txt
from my system: out.txtExpected
It creates an svg file
Actual
It crashes with
Version
latest git as of commit adc83b9
The text was updated successfully, but these errors were encountered: