Too Long; Didn't Read
Lua code running inside OpenResty or Nginx servers may consume too much CPU resources. Lua is known for its simplicity, small memory footprint, and high execution efficiency. The best way to quickly find all the CPU performance bottlenecks is the Lua-land CPU flame graph sampling tool. Flame graphs are a visualization method invented by Brendan Gregg for showing how a system resource or a performance metric is quantitatively distributed across all the code paths in the target software. The same idea and tools do apply equally well to those most complex Lua applications in the wild.