Groups
Sign in
Groups
openresty
Conversations
Labels
About
Send feedback
Help
为什么我烧lua的火焰图出来的都是柱状的?
205 views
flamegraph
stap
systemtap
Skip to first unread message
tweyseo
unread,
Jan 23, 2018, 7:40:20 AM
1/23/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to openresty
图我已经传到附件了
烧C的不会 请熟悉这块的帮看看
而且经常出现
user string copy fault -14 at 00000000c001c014 [man error::fault]这种
绘制脚本大概是这样的
./stapxx/samples/lj-lua-stacks.sxx --arg time=2 --skip-badvars -x ${PID} > ./luaFGFiles/${NAME}.bt
#./openresty-systemtap-toolkit/fix-lua-bt ./luaFGFiles/${NAME}.bt > ./luaFGFiles/${NAME}.bt
./FlameGraph/
stackcollapse-stap.pl
./luaFGFiles/${NAME}.bt > ./luaFGFiles/${NAME}.cbt
./FlameGraph/
flamegraph.pl
./luaFGFiles/${NAME}.cbt > ./luaFGFiles/${NAME}.svg
20180123_203707.svg
Zexuan Luo
unread,
Jan 23, 2018, 10:53:50 PM
1/23/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to open...@googlegroups.com
稍微看了下,大致没什么问题?火焰图显示的是函数调用栈和各函数花费时间的占比,如果某个函数的调用栈比较深,且每个函数内只有一个热点函数,就会出现“柱状”的显示效果。
> --
> --
> 邮件来自列表“openresty”,专用于技术讨论!
> 订阅: 请发空白邮件到
openresty...@googlegroups.com
> 发言: 请发邮件到
open...@googlegroups.com
> 退订: 请发邮件至
openresty+...@googlegroups.com
> 归档:
http://groups.google.com/group/openresty
> 官网:
http://openresty.org/
> 仓库:
https://github.com/agentzh/ngx_openresty
> 教程:
http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html
tweyseo
unread,
Feb 4, 2018, 1:47:07 AM
2/4/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to openresty
感谢!
那就好, 因为之前都是直接用pref+f
lamegraph烧node.js和c/c++的火焰图, 没有出现过, 担心是官方烧systemtap的脚本有什么潜规则之类的, 那烧lua火焰图的时候出现
user string copy fault -14 at 00000000c001c014 [man error::fault]这种也是正常的是吧.
在 2018年1月24日星期三 UTC+8上午11:53:50,Zexuan Luo写道:
Zexuan Luo
unread,
Feb 4, 2018, 2:10:14 AM
2/4/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to open...@googlegroups.com
按本人的经验,user string copy fault 属于正常的现象,可以在执行时加 --skip-badvars 忽略掉。
Reply all
Reply to author
Forward
0 new messages