erlang性能分析命令
2015-07-14 本文已影响134人
randyjia
- 找出cpu占用最高的进程,每10秒更新一次
<pre>
spawn(fun() -> etop:start([{interval,10}, {sort, runtime}]) end).
etop:stop().
</pre>
- 找出内存占用较高进程, 输出进程的数量为20,文本形式输出
<pre>
spawn(fun() ->etop:start([{output, text}, {lines, 20}, {sort, memory}]) end).
etop:stop().
</pre>