天天看点

perf无函数堆栈



https://perf.wiki.kernel.org/index.php/Main_Page

在root用户下,使用 perf record -g 加命令的方式启动程序,-p 指定进程号的方式不靠谱

不显示堆栈,可编译时加上 CFLAGS='-fno-omit-frame-pointer'   应当和 libunwind 的版本有关