Back to Top

Linux perf相关

perf相关

perf record -g -e cycles -p 1234
perf record --call-graph lbr -e cycles -p 1234

火焰图

perf script > out.perf
./stackcollapse-perf.pl out.perf > out.folded
./flamegraph.pl out.folded > out.svg

vtune相关(2022)

cd /opt/intel/oneapi/vtune/latest/bin64
./vtune -collect hotspots  -target-pid 1234
./vtune -report hotspots -r r000hs/

本文链接, 未经许可,禁止转载