npm install javaflamegraph
cd ./node_modules/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 <process id>
- This will start profiling for the given process id. e.g.npm run start 1234
This library depends on perl, shell, and jstack (Java SDK).These are already available on linux/mac.On windows you can use this package with cygwin.
Thanks to Brendan Gregg's FlameGraph
MIT © Saquib Khan