Analyzer ngx-pcre-compile-lua-fgraph
Name
ngx-pcre-compile-lua-fgraph - Openresty New PCRE Compilation Lua Land Flame Graph
This analyzer profiles PCRE (Perl Compatible Regular Expressions) compilation operations in Lua-land code within OpenResty, Kong, and APISIX applications. It captures stack traces during regular expression compilation, generating flame graphs that visualize CPU time distribution across Lua-level function calls involved in PCRE compilation. This helps identify performance bottlenecks caused by frequent or complex regex compilation patterns.
Resource Category
CPU.
Application Type & Technical Stack
- OpenResty
- Kong
- APISIX
Command Line Syntax
The analyzer can be invoked directly on the command-line via the orxray
utility from the openresty-xray-cli software package.
Alternatively, the analyzer can also be invoked manually or automatically on the web console UI of OpenResty XRay (like on the Advanced web page).
# PID is the target process PID.
orxray analyzer run ngx-pcre-compile-lua-fgraph -p PID
# trace a shell command directly
orxray analyzer run ngx-pcre-compile-lua-fgraph -c SHELL_CMD
# PGID is the process group ID or any process's PID within the target process
# group.
orxray analyzer run ngx-pcre-compile-lua-fgraph -p -PGID
# trace any processes started from the specified executable path.
orxray analyzer run ngx-pcre-compile-lua-fgraph --exe /path/to/exe/file
Tracing Multiple Processes
Supported.
Output Formats
- Flame Graphs
Author
The OpenResty Inc. Team.
Copyright
Copyright (C) by OpenResty Inc. All rights reserved.