Parcourir la source

Fix fprof use (-p/--profile)

pull/3/head
Tuncer Ayaz il y a 12 ans
Parent
révision
f4e55b8463
1 fichiers modifiés avec 3 ajouts et 4 suppressions
  1. +3
    -4
      src/rebar.erl

+ 3
- 4
src/rebar.erl Voir le fichier

@ -87,11 +87,10 @@ run(RawArgs) ->
true ->
io:format("Profiling!\n"),
try
fprof:apply(fun([C, A]) -> run_aux(C, A) end,
[BaseConfig1, Cmds])
fprof:apply(fun run_aux/2, [BaseConfig1, Cmds])
after
fprof:profile(),
fprof:analyse([{dest, "fprof.analysis"}])
ok = fprof:profile(),
ok = fprof:analyse([{dest, "fprof.analysis"}])
end;
false ->
run_aux(BaseConfig1, Cmds)

Chargement…
Annuler
Enregistrer