diff options
author | Stavros Aronis <[email protected]> | 2012-02-20 13:56:25 +0100 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2012-05-21 15:31:19 +0200 |
commit | 60e682897f98d9374b96c6324759f302170b2a17 (patch) | |
tree | e6ccf2de74f0c77e118a58b40135b194d95d9999 /lib/dialyzer/src/dialyzer.hrl | |
parent | c8f8c90f908ae06a3b2114b77447699b7d690496 (diff) | |
download | otp-60e682897f98d9374b96c6324759f302170b2a17.tar.gz otp-60e682897f98d9374b96c6324759f302170b2a17.tar.bz2 otp-60e682897f98d9374b96c6324759f302170b2a17.zip |
Add --time option to Dialyzer
Diffstat (limited to 'lib/dialyzer/src/dialyzer.hrl')
-rw-r--r-- | lib/dialyzer/src/dialyzer.hrl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/dialyzer/src/dialyzer.hrl b/lib/dialyzer/src/dialyzer.hrl index 44b1ebeabd..e2edd3f0af 100644 --- a/lib/dialyzer/src/dialyzer.hrl +++ b/lib/dialyzer/src/dialyzer.hrl @@ -132,6 +132,7 @@ -record(options, {files = [] :: [file:filename()], files_rec = [] :: [file:filename()], analysis_type = succ_typings :: anal_type1(), + timing = false :: boolean(), defines = [] :: [dial_define()], from = byte_code :: start_from(), get_warnings = maybe :: boolean() | 'maybe', @@ -153,3 +154,11 @@ forms = [] :: [{_, _}]}). %%-------------------------------------------------------------------- + +-define(timing(Msg,Expr), + begin + dialyzer_timing:start_stamp(Msg), + __T = Expr, + dialyzer_timing:end_stamp(), + __T + end). |