几个关键的选项

$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.csdn.net/daiyudong2020/article/details/90047065

 

 

相关文章:

  • 2021-06-17
  • 2021-08-30
  • 2021-07-30
  • 2021-11-02
  • 2021-07-17
  • 2022-12-23
  • 2021-08-15
  • 2022-01-12
猜你喜欢
  • 2022-01-21
  • 2022-12-23
  • 2021-12-16
  • 2021-11-26
  • 2021-05-26
相关资源
相似解决方案