https://perf.wiki.kernel.org/index.php/Main_Page
在root使用者下,使用 perf record -g 加指令的方式啟動程式,-p 指定程序号的方式不靠譜
不顯示堆棧,可編譯時加上 CFLAGS='-fno-omit-frame-pointer' 應當和 libunwind 的版本有關
https://perf.wiki.kernel.org/index.php/Main_Page
在root使用者下,使用 perf record -g 加指令的方式啟動程式,-p 指定程序号的方式不靠譜
不顯示堆棧,可編譯時加上 CFLAGS='-fno-omit-frame-pointer' 應當和 libunwind 的版本有關