|
|
@ -19,12 +19,19 @@ name=$2 |
|
|
|
|
|
|
|
|
|
|
|
# /opt/openresty-systemtap-toolkit/sample-bt -p 496435 -t 5 -k > a.bt |
|
|
|
# /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 |
|
|
|
if [ ! -d /opt/openresty-systemtap-toolkit ];then |
|
|
|
cd /opt && git clone https://github.com/openresty/openresty-systemtap-toolkit |
|
|
|
cd /opt && git clone https://github.com/openresty/openresty-systemtap-toolkit |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! -d stapxx ];then |
|
|
|
|
|
|
|
cd /opt && git clone https://github.com/openresty/stapxx |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! -d /opt/FlameGraph ];then |
|
|
|
if [ ! -d /opt/FlameGraph ];then |
|
|
|
cd /opt && git clone https://github.com/brendangregg/FlameGraph |
|
|
|
cd /opt && git clone https://github.com/brendangregg/FlameGraph |
|
|
|
fi |
|
|
|
fi |
|
|
|