summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2012-09-26 22:17:44 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2012-09-26 22:18:35 +0200
commitf4e55b8463f86554240e1cba908ca0a8cb0c38c4 (patch)
treee355aa33e888517f195db73572a17cbab5985be7
parent1b52a597c44209da3903e1477399ea35a6a9efc4 (diff)
Fix fprof use (-p/--profile)
-rw-r--r--src/rebar.erl7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/rebar.erl b/src/rebar.erl
index 5d9475d..cd0bed5 100644
--- a/src/rebar.erl
+++ b/src/rebar.erl
@@ -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)