jvm-profiling-tools / ap-loader

Packages async-profiler with binaries for all platforms in a single JAR
Apache License 2.0
128 stars 10 forks source link

Unknown argument: cpu #21

Closed ennishol closed 6 months ago

ennishol commented 6 months ago

Used the README example and alloc and lock events are recorded but CPU is not

java -jar ap-loader-all.jar profiler -e alloc,cpu,lock -d 60 -f all.jfr 79686

[WARN] Unknown argument: cpu
Profiling for 60 seconds
Done

ap-loader-all.jar version
3.0
parttimenerd commented 6 months ago

This is an issue of the underlying async-profiler.

parttimenerd commented 6 months ago

java -jar ap-loader-all.jar profiler -e alloc -e cpu -e lock -d 60 -f all.jfr 79686 should work. Please file an issue with https://github.com/async-profiler/async-profiler.