浏览代码

When profiling, save analysis results to disk

pull/3/head
Dave Smith 13 年前
父节点
当前提交
1c1620a244
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. +6
    -3
      src/rebar.erl

+ 6
- 3
src/rebar.erl 查看文件

@ -72,9 +72,12 @@ run(RawArgs) ->
case rebar_config:get_global(enable_profiling, false) of
true ->
io:format("Profiling!\n"),
fprof:apply(fun(A) -> run_aux(A) end, [Args]),
fprof:profile(),
fprof:analyse();
try
fprof:apply(fun(A) -> run_aux(A) end, [Args])
after
fprof:profile(),
fprof:analyse([{dest, "fprof.analysis"}])
end;
_ ->
run_aux(Args)
end.

正在加载...
取消
保存