使用fprof基本步骤

$erl -name  a@localhost -setcookie abc -remsh b@localhost
1>fprof:trace([start, {file, "/home/getong/first.trace"}, verbose, {procs,all}]).
2>fprof:trace([stop]).
3>fprof:profile({file, "/home/getong/first.trace"}).
4>fprof:analyse([totals, {dest, "/home/getong/first.analysis"}]).

很坑的就是,fprof在分析生产环境会写入大量的文件,从而导致生产环境直接崩溃。

转载于:https://my.oschina.net/u/191928/blog/618657

猜你喜欢

转载自blog.csdn.net/weixin_34051201/article/details/91986992
今日推荐