perf top查看进程cpu高原因

 

几个关键的选项

$perf top -h

-p, --pid <pid>       profile events on existing process id

-g                    enables call-graph recording

 

例如查看redis进程的内核调用,

$perf top -p 28764

perf top查看进程cpu高原因

 

原文出自:https://blog.****.net/daiyudong2020/article/details/90047065