diff --git a/plugins/op_waf/t/ngx_debug.sh b/plugins/op_waf/t/ngx_debug.sh index e29a97da3..6957697c5 100644 --- a/plugins/op_waf/t/ngx_debug.sh +++ b/plugins/op_waf/t/ngx_debug.sh @@ -19,12 +19,19 @@ name=$2 # /opt/openresty-systemtap-toolkit/sample-bt -p 496435 -t 5 -k > a.bt +# export PATH=$PATH:/opt/stapxx +# /opt/stapxx/samples/lj-lua-stacks.sxx --arg time=5 --skip-badvars -x 562556 -DSTP_NO_OVERLOAD > tmp.bt if [ ! -d /opt/openresty-systemtap-toolkit ];then cd /opt && git clone https://github.com/openresty/openresty-systemtap-toolkit fi +if [ ! -d stapxx ];then + cd /opt && git clone https://github.com/openresty/stapxx +fi + + if [ ! -d /opt/FlameGraph ];then cd /opt && git clone https://github.com/brendangregg/FlameGraph fi diff --git a/plugins/openresty/install.sh b/plugins/openresty/install.sh index 214bffcaf..7a1fc76c2 100755 --- a/plugins/openresty/install.sh +++ b/plugins/openresty/install.sh @@ -65,6 +65,7 @@ Install_openresty() --with-http_stub_status_module \ --with-http_realip_module # --without-luajit-gc64 + # --with-debug # 用于调式 make -j${cpuCore} && make install && make clean