cykl / hprof2flamegraph

Flame Graph visualization for Java (HPROF, Honest-profiler)
BSD 2-Clause "Simplified" License
111 stars 15 forks source link

deal the issue of marker is 4 #4

Closed chengxiayan closed 7 years ago

chengxiayan commented 7 years ago

I encountered exception "Unexpected marker: 4 at offset 1" when I used stackcollapse_hprof.py to convert honest-profiler file to flame graph format. I found the reason is that the updated honest-profiler uses 4 as the marker of thread meta. And I also found the marker of 11 is not supported in stackcollapse_hprof.py,so I add code to deal with this situation.

cykl commented 7 years ago

Thanks. I will do some tests then push out a new release.