We do provide various tools based on Systemtap for profiling live OpenResty applications both in production and development environments.
The most useful tools are
- C-land on-CPU Flame Graph tool: https://github.com/openresty/nginx-systemtap-toolkit#sample-bt
- C-land off-CPU Flame Graph tool: https://github.com/openresty/nginx-systemtap-toolkit#sample-bt-off-cpu
- Lua-land on-CPU Flame Graph tool: https://github.com/openresty/stapxx#lj-lua-stacks
It is recommended to build Systemtap from latest release source, see BuildSystemtap for details.
If you have problems in interpreting the resulting flame graphs or have troubles getting these tools running in your system, feel free to join our OpenResty Community and ask for help.