flamegraph专题

openresty flamegraph samples

安装依赖systemtap https://blog.csdn.net/u011944141/article/details/89512116 下载火焰图绘制相关工具 cd /optsudo git clone https://github.com/openresty/nginx-systemtap-toolkit.gitsudo git clone https://github.com

性能测试工具三——perf + FlameGraph(采样测试)

1. 安装 sudo apt install linux-tools-common 如果没安装成功可尝试制定特定内核版本的工具,例如sudo apt install linux-tools-6.5.0-27-generic。 2. 使用perf Step1:编译得到可执行程序,假设是a.out。 Step2:执行类似如下指令,sudo perf record -F 1000 --call-g