安装linux对应版本的头文件和内核调试信息
查看版本号
安装完成如下
或者
安装nginx调试信息
安装依赖库
安装systemtab
检查安装是否成功
下载生成工具
生成火焰图
也可以使用ngx-sample-lua-bt
参考
systemtap
- http://xuclv.blog.51cto.com/5503169/1184517/
- http://wiki.jikexueyuan.com/project/openresty-best-practice/install.html
- http://openresty.org/en/build-systemtap.html
nginx-systemtap-toolkit
下载
https://github.com/openresty/nginx-systemtap-toolkit
说明
https://github.com/openresty/nginx-systemtap-toolkit/blob/master/README-CN.markdown#ngx-sample-bt
https://github.com/openresty/nginx-systemtap-toolkit#ngx-sample-bt