$erl -name a@localhost -setcookie abc -remsh b@localhost
>fprof:trace([start, {file, "/home/getong/first.trace"}, verbose, {procs,all}]).
>fprof:trace([stop]).
>fprof:profile({file, "/home/getong/first.trace"}).
>fprof:analyse([totals, {dest, "/home/getong/first.analysis"}]).
很坑的就是,fprof在分析生产环境会写入大量的文件,从而导致生产环境直接崩溃。