使用perf想看一下火焰图,有两个问题:
1.perf record ctrl+c不了,是做了什么操作?我本地其他程序可以正常work。
2.perf report、script等会报错perf.data为0,实际上perf.data里面有一些数据。
[test@ip-192-168-218-1 StarRocks-3.2.3]$ ps -ef | grep star
test 9741 1 3 07:15 pts/2 00:00:00 /code/StarRocks-3.2.3/be/lib/starrocks_be
test 11574 6425 0 07:15 pts/1 00:00:00 grep --color=auto star
perf record --call-graph dwarf,65528 -F 999 -p 9741
Reading /proc/10732/task/10732/maps time out. You may want to increase the time limit by --proc-map-timeout
[paxtest@ip-192-168-218-224 StarRocks-3.2.3]$ perf report
WARNING: The perf.data file’s data size field is 0 which is unexpected.
Was the ‘perf record’ command properly terminated?