1. Run the JVM with: $ perf record --event cycles java ... -XX:+PrintAssembly -XX:+PrintNMethods -XX:+PrintNativeNMethods -XX:+PrintSignatureHandlers -XX:+PrintAdapterHandlers -XX:+PrintStubCode --XX:+LogCompilation -XX:LogFile=hotspot.log ... This will generated perf.data and hotspot.log in the current directory. 2. Feed both to perfasm.jar: $ java -jar perfasm.jar "delay=1000;length=10000000;hotThreshold=0.01" hotspot.log perf.data