This project visualizes stack traces in hang and spin reports on Mac OS X. It aims to solve the following problem: it's hard to pinpoint quickly a function where the most time is spent in a big stack trace. Big means more than 2 screens long.
The project is heavily inspired by remarkable brendangregg/FlameGraph. But I am implementing everything from scratch in Python, that's why I'm not forking the original project. I'll see how can I contribute my work to Brendan's project.
There is no proper CLI, you can use something like
python flamegraph.py test_data/Xcode_2013-08-30-203227_Volodymyrs-Mac-mini.hang > test.svg
Most useful resources:
- http://dtrace.org/blogs/brendan/2011/12/16/flame-graphs/
- https://github.com/brendangregg/FlameGraph
man spindump
man sample
Other useful resources: