美文网首页
erlang性能分析命令

erlang性能分析命令

作者: randyjia | 来源:发表于2015-07-14 20:21 被阅读134次

转自这里

  1. 找出cpu占用最高的进程,每10秒更新一次
    <pre>

spawn(fun() -> etop:start([{interval,10}, {sort, runtime}]) end).
etop:stop().
</pre>

  1. 找出内存占用较高进程, 输出进程的数量为20,文本形式输出
    <pre>

spawn(fun() ->etop:start([{output, text}, {lines, 20}, {sort, memory}]) end).
etop:stop().
</pre>

相关文章

网友评论

      本文标题:erlang性能分析命令

      本文链接:https://www.haomeiwen.com/subject/vuguqttx.html