https://perf.wiki.kernel.org/index.php/Main_Page
在root用户下,使用 perf record -g 加命令的方式启动程序,-p 指定进程号的方式不靠谱
不显示堆栈,可编译时加上 CFLAGS='-fno-omit-frame-pointer' 应当和 libunwind 的版本有关
本文介绍在root用户环境下使用perf工具时的一些注意事项和技术细节,包括如何使用perf record-g启动程序、为何-p参数指定进程号的方式不可靠,以及如何解决不显示堆栈的问题。
https://perf.wiki.kernel.org/index.php/Main_Page
在root用户下,使用 perf record -g 加命令的方式启动程序,-p 指定进程号的方式不靠谱
不显示堆栈,可编译时加上 CFLAGS='-fno-omit-frame-pointer' 应当和 libunwind 的版本有关
986
1389

被折叠的 条评论
为什么被折叠?