- 找出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>
spawn(fun() -> etop:start([{interval,10}, {sort, runtime}]) end).
etop:stop().
</pre>
spawn(fun() ->etop:start([{output, text}, {lines, 20}, {sort, memory}]) end).
etop:stop().
</pre>
本文标题:erlang性能分析命令
本文链接:https://www.haomeiwen.com/subject/vuguqttx.html
网友评论