diff options
| author | Pierre-Marie Pédrot | 2016-06-14 00:33:08 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2016-06-14 01:13:41 +0200 |
| commit | 030759d5799a255c31b3a114f00331f422ac26a3 (patch) | |
| tree | 58788941a9ca702189b9b2a9a53dc34877c26228 /ltac/profile_ltac_tactics.ml4 | |
| parent | 17a9fe474427291797e37183956b2bc5c6434ec6 (diff) | |
Better coding style (syntax).
Diffstat (limited to 'ltac/profile_ltac_tactics.ml4')
| -rw-r--r-- | ltac/profile_ltac_tactics.ml4 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ltac/profile_ltac_tactics.ml4 b/ltac/profile_ltac_tactics.ml4 index a4ba5eab48..c092a0cb61 100644 --- a/ltac/profile_ltac_tactics.ml4 +++ b/ltac/profile_ltac_tactics.ml4 @@ -8,32 +8,32 @@ (*i camlp4deps: "grammar/grammar.cma" i*) +(** Ltac profiling entrypoints *) + open Profile_ltac open Stdarg DECLARE PLUGIN "profile_ltac_plugin" let tclSET_PROFILING b = - Proofview.tclLIFT (Proofview.NonLogical.make (fun () -> - set_profiling b)) + Proofview.tclLIFT (Proofview.NonLogical.make (fun () -> set_profiling b)) TACTIC EXTEND start_ltac_profiling - | [ "start" "ltac" "profiling" ] -> [ tclSET_PROFILING true ] +| [ "start" "ltac" "profiling" ] -> [ tclSET_PROFILING true ] END TACTIC EXTEND stop_profiling - | [ "stop" "ltac" "profiling" ] -> [ tclSET_PROFILING false ] -END;; +| [ "stop" "ltac" "profiling" ] -> [ tclSET_PROFILING false ] +END VERNAC COMMAND EXTEND ResetLtacProfiling CLASSIFIED AS SIDEFF - [ "Reset" "Ltac" "Profile" ] -> [ reset_profile() ] + [ "Reset" "Ltac" "Profile" ] -> [ reset_profile() ] END VERNAC COMMAND EXTEND ShowLtacProfile CLASSIFIED AS QUERY - [ "Show" "Ltac" "Profile" ] -> [ print_results() ] + [ "Show" "Ltac" "Profile" ] -> [ print_results() ] END - VERNAC COMMAND EXTEND ShowLtacProfileTactic CLASSIFIED AS QUERY - [ "Show" "Ltac" "Profile" string(s) ] -> [ print_results_tactic s ] + [ "Show" "Ltac" "Profile" string(s) ] -> [ print_results_tactic s ] END |
