`

erlang性能统计

阅读更多

1 、etop和getop
\erl5.7.2\lib\observer-0.9.8.1\priv\bin\
需设置node,etop.bat –node nodename@domain
统计项有:
Load: cpu procs runq
Memory: total binary processes code atom ets
PID (进程名或初始函数) Time(us) Reds Memory MsgQ CurrentFunc


如果要把一次结果输出到文件中,可以使用dump(File)方法;
如果要把结果全部输出到文件中,可以使用

>erl -sname etop -hidden -noshell -noinput –s etop -s erlang halt -output text -node nodename@domain > abc.txt

再进一步对abc.txt进行分析。

2、timer:tc/3
统计函数执行的时间

3、eprof、cprof、fprof
4、erlang:statistic()

 

分享到:
评论
1 楼 ahat1195 2011-05-31  

勍 .

相关推荐

Global site tag (gtag.js) - Google Analytics