针对难以查清CPU过高的工具分析,perf工具的使用

记录数据

perf record -a -e cycles -o cycle.perf -g -p xxx sleep 15

查看结果

perf report -i cycle.perf | less

或者动态查看执行函数

perf top
原文地址:https://www.cnblogs.com/FengGeBlog/p/15490317.html