erlang性能分析命令

2015-07-14  本文已影响134人  randyjia

转自这里

  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>

上一篇 下一篇

猜你喜欢

热点阅读