1、java -agentpath:/home/rdma/profiler/build/libasyncProfiler.so=start,svg,file=profile.svg ClassName
2、用offcpu跑:
java -agentpath:/home/rdma/profiler/build/libasyncProfiler.so=start,svg,file=profile.svg , event=alloc ClassName
3、java启动成功后,随机采样:
$ jps
9234 Jps
8983 Computey
$ ./profiler.sh -d 30 -f /tmp/flamegraph.svg 8983
用绝对路径,相对路径可能会有问题。