cykl / hprof2flamegraph Goto Github PK
View Code? Open in Web Editor NEWFlame Graph visualization for Java (HPROF, Honest-profiler)
License: BSD 2-Clause "Simplified" License
Flame Graph visualization for Java (HPROF, Honest-profiler)
License: BSD 2-Clause "Simplified" License
honest profiler just introduced a new marker:
const byte NEW_METHOD_SIGNATURE = 31;
this of course breaks the conversion from hpl. Hopefully you can take a look and fix this.
Does supporting Python >= 2.7
mean that I can run this tool for Py3.6?
This is purely py2 --> py3 encoding problem.
$ stackcollapse-hprof mymem.hprof > output-folded.txt
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/bin/stackcollapse-hprof", line 11, in <module>
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/stackcollapse_hprof.py", line 183, in main
content = get_file_content(filename)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/stackcollapse_hprof.py", line 58, in get_file_content
lines = f.readlines()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd6 in position 87: ordinal not in range(128)
Hi,
I hava a file that generated on android,I convert it to a standard binary hprof by the tool "hprof-conv".stackcollapse-hprof use "utf-8" to read it,so error is showed:
File "./stackcollapse_hprof.py", line 207, in <module>
main()
File "./stackcollapse_hprof.py", line 184, in main
content = get_file_content(filename)
File "./stackcollapse_hprof.py", line 60, in get_file_content
return f.read()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.py", line 302, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x99 in position 29: invalid start byte
Do you have a solution for android hprof?
I get the following error when trying to parse a hpl file generated by honest-profiler (version d505d540ad09516ede804e7d1aa34a889f266780):
stackcollapse-hpl slow2 > output-folded.txt
Traceback (most recent call last):
File "/usr/local/bin/stackcollapse-hpl", line 9, in <module>
load_entry_point('hprof2flamegraph==0.0.2', 'console_scripts', 'stackcollapse-hpl')()
File "/usr/local/lib/python3.4/dist-packages/stackcollapse_hpl.py", line 110, in main
(traces, methods) = parse_hpl(filename)
File "/usr/local/lib/python3.4/dist-packages/stackcollapse_hpl.py", line 72, in parse_hpl
raise Exception("Unexpected marker: %s at offset %s" % (marker, fh.tell()))
Exception: Unexpected marker: 21 at offset 14
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.