perf 工具的基本使用:
http://blog.itpub.net/24585765/viewspace-2564885/
-p, --pid <pid> profile events on existing process id
-g enables call-graph recording
-g:可以查看堆栈调用
-a:查看所有CPU
perf top -g -p 1234输出如下:
原文出自:https://blog.youkuaiyun.com/daiyudong2020/article/details/90047065