ngx lua 性能分析
主要依赖动态追踪技术实时抓取获得函数调用栈的耗时占比情况
主要介绍相关工具安装使用
关于动态追踪 这有篇看不大懂的blog https://openresty.org/posts/dynamic-tracing/
工具安装
https://github.com/openresty/openresty-systemtap-toolkit.git ngxlua性能分析
https://github.com/openresty/stapxx#lj-lua-stacks systemtap扩展 这里主要用来做luajit2.1的代码性能分析
https://github.com/brendangregg/FlameGraph.git 火焰图svg制作工具
相关依赖安装
systemtap 安装(ubuntu)
添加Ubuntu ddebs源文件,在命令行粘贴如下命令:
s