I\'d like to collect stacktraces from my Java app for creating CPU Flame Graphs for profiling.
This is very similar to this question: How to get complete stack dump from
Try this: https://github.com/saquibkhan/javaFlameGraph
Installation
npm install javaflamegraph
Usage
cd javaflamegraph
npm start
- This will wait till it detects a process with name 'Java'. Can be best best used to start profiling at program startup.npm run start
- This will start profiling for the given process id. e.g.npm run start 1234