Hello! 2013/3/3 Aaron Lewis: > > 我想知道 Lua 哪个部分消耗CPU最多,这个能做吗?因为实在 nginx 上跑得,所以不知道怎么去做 profilig > 我们一直在生产上使用“火焰图”工具对 nginx 中的 Lua 代码进行实时 profiling,见这里的文档: https://github.com/agentzh/nginx-systemtap-toolkit#ngx-sample-lua-bt 同时,在 C 级别上的“火焰图”也能提供不一样的视角: https://github.com/agentzh/nginx-systemtap-toolkit#ngx-sample-bt 在我的新浪微博主页(@agentzh)上有一些真实"火焰图"的案例分析可供参考。 Best regards, -agentzh