Closed oehme closed 6 years ago
Nevermind, the recording I looked at must have been bad. I tried with a few others and see actual memory usage being shown as expected.
Okay I know now where the problem is. The converter currently reads the "allocationSize" field, which only contains the size of the object that triggered a new TLAB to be created. That doesn't tell you how much memory this type of object is taking up overall. The converter should use the "tlabSize" field instead.
Hi @oehme, I'm really sorry for the delay. I will check on this soon and reply. I'm also happy to accept a PR if you can fix the code. :smile:
You can take a look at my fork, it contains a couple of improvements:
I checked your fork and saw all your improvements. (I actually saw your fork before your comment). Would you like to send a PR to my project?
Using
-e allocation-tlab
seems to count the allocation events instead of counting the amount of memory allocated at that stack frame. This means that the flamegraph will show stacks that allocate often, even if they only allocate a few bytes.As a user I'd expect the flamegraph to point me to the stacks that actually consumed the most memory.