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

flamegraph.pl miscalculating width #343

Open
dudeuter opened this issue Aug 23, 2024 · 1 comment
Open

flamegraph.pl miscalculating width #343

dudeuter opened this issue Aug 23, 2024 · 1 comment

Comments

@dudeuter
Copy link

dudeuter commented Aug 23, 2024

I'm not entirely sure the preconditions; but I've been doing some work on visualizing heaps from a couple of formats.

messed_up_flamegraph.mp4

I'm a little confused as to what's causing this because my other implementations are very similar; but the issue only occurs with this implementation. Perhaps it's due to having such a large amount of small allocations? Is this a known issue?

Originally I thought it might be due to missing frames between the root node and leafs.

ie:

foo;bar 1024

vs

foo 0
foo;bar 1024

But after making sure that I properly create a full tree of my heap (including frames without allocations) I still was able to reproduce.

@dudeuter
Copy link
Author

I ran this against another heap dump that I took and wasn't able to reproduce the issue 🤔

Not sure why the first heap dump I took would cause this; while the other doesn't. If you can point me in correct place to look I can check if this is something wrong with my heap dump or if it's common to flamegraph.pl.

But otherwise maybe this can just be closed.

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

No branches or pull requests

1 participant