diff options
author | Stavros Aronis <[email protected]> | 2012-03-22 10:21:18 +0100 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2012-05-21 15:31:22 +0200 |
commit | 4e1ed3a5666c13d442759e710d9d08280362c0bb (patch) | |
tree | ef5a7f2385abe5b9c56b45a7e275347d07685217 /lib/dialyzer/src/dialyzer_analysis_callgraph.erl | |
parent | 24c2c72cab2c282eb17c8ac97c832106ecaf4ed8 (diff) | |
download | otp-4e1ed3a5666c13d442759e710d9d08280362c0bb.tar.gz otp-4e1ed3a5666c13d442759e710d9d08280362c0bb.tar.bz2 otp-4e1ed3a5666c13d442759e710d9d08280362c0bb.zip |
Relocate start and stop of timing server
Diffstat (limited to 'lib/dialyzer/src/dialyzer_analysis_callgraph.erl')
-rw-r--r-- | lib/dialyzer/src/dialyzer_analysis_callgraph.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/dialyzer/src/dialyzer_analysis_callgraph.erl b/lib/dialyzer/src/dialyzer_analysis_callgraph.erl index 67c5b3241d..641b7eb22a 100644 --- a/lib/dialyzer/src/dialyzer_analysis_callgraph.erl +++ b/lib/dialyzer/src/dialyzer_analysis_callgraph.erl @@ -64,12 +64,14 @@ -spec start(pid(), [dial_warn_tag()], #analysis{}) -> 'ok'. start(Parent, LegalWarnings, Analysis) -> + dialyzer_timing:init(Analysis#analysis.timing), RacesOn = ordsets:is_element(?WARN_RACE_CONDITION, LegalWarnings), Analysis0 = Analysis#analysis{race_detection = RacesOn}, Analysis1 = expand_files(Analysis0), Analysis2 = run_analysis(Analysis1), State = #server_state{parent = Parent, legal_warnings = LegalWarnings}, - loop(State, Analysis2, none). + loop(State, Analysis2, none), + dialyzer_timing:stop(). run_analysis(Analysis) -> Self = self(), |