按本人的经验,user string copy fault 属于正常的现象,可以在执行时加 --skip-badvars 忽略掉。
在 2018年2月4日 下午2:47,tweyseo <twe...@gmail.com> 写道:
> 感谢!
> 那就好, 因为之前都是直接用pref+flamegraph烧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写道:
>>
>>
>> 稍微看了下,大致没什么问题?火焰图显示的是函数调用栈和各函数花费时间的占比,如果某个函数的调用栈比较深,且每个函数内只有一个热点函数,就会出现“柱状”的显示效果。
>>
>> 在 2018年1月23日 下午8:40,tweyseo <twe...@gmail.com> 写道:
>> > 图我已经传到附件了
>> > 烧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
>> >
>> > --
>> > --
>