使用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在分析生產環境會寫入大量的文件,從而致使生產環境直接崩潰。cookie

相關文章
相關標籤/搜索