소스 검색

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.

불러오는 중...
취소
저장