aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/src/dialyzer_timing.erl
diff options
context:
space:
mode:
authorStavros Aronis <[email protected]>2012-03-22 10:21:18 +0100
committerHenrik Nord <[email protected]>2012-05-21 15:31:22 +0200
commit4e1ed3a5666c13d442759e710d9d08280362c0bb (patch)
treeef5a7f2385abe5b9c56b45a7e275347d07685217 /lib/dialyzer/src/dialyzer_timing.erl
parent24c2c72cab2c282eb17c8ac97c832106ecaf4ed8 (diff)
downloadotp-4e1ed3a5666c13d442759e710d9d08280362c0bb.tar.gz
otp-4e1ed3a5666c13d442759e710d9d08280362c0bb.tar.bz2
otp-4e1ed3a5666c13d442759e710d9d08280362c0bb.zip
Relocate start and stop of timing server
Diffstat (limited to 'lib/dialyzer/src/dialyzer_timing.erl')
-rw-r--r--lib/dialyzer/src/dialyzer_timing.erl6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/dialyzer/src/dialyzer_timing.erl b/lib/dialyzer/src/dialyzer_timing.erl
index c2a7b3ecf8..d5e6d1476d 100644
--- a/lib/dialyzer/src/dialyzer_timing.erl
+++ b/lib/dialyzer/src/dialyzer_timing.erl
@@ -32,10 +32,6 @@
init(Active) ->
Pid = spawn_link(fun() -> loop_init(Active) end),
- case whereis(?MODULE) of
- undefined -> ok;
- _ -> unregister(?MODULE)
- end,
register(?MODULE, Pid),
ok.
@@ -72,6 +68,8 @@ loop(LastNow, Size, Unit) ->
loop(LastNow, NewSize, NewUnit);
{Pid, stop, Now} ->
io:format(" ~-9s (+~5.2fs)\n", ["",diff(Now, LastNow)]),
+ Pid ! ok;
+ {Pid, stop} ->
Pid ! ok
end.