diff options
| author | Jason Gross | 2020-01-08 13:27:52 -0500 |
|---|---|---|
| committer | Jason Gross | 2020-01-08 13:27:52 -0500 |
| commit | 1255a033434fd299048e68d0d8f700b49e2e58f9 (patch) | |
| tree | 19b6c1c057d1abcac4059c2cc9d2f590c608ec57 /vernac | |
| parent | 3cdbd61f3acf0722c92f8192425eb1a677270b08 (diff) | |
Add Set NativeCompute Timing
The command `Set NativeCompute Timing` causes calls to `native_compute`
(as well as kernel calls to the native compiler) to emit separate timing
information about compilation, execution, and reification. This allows
more fine-grained timing of the native compiler without needing to set
the `-debug` flag.
Diffstat (limited to 'vernac')
| -rw-r--r-- | vernac/vernacentries.ml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vernac/vernacentries.ml b/vernac/vernacentries.ml index 99d74f16cc..4dc883725e 100644 --- a/vernac/vernacentries.ml +++ b/vernac/vernacentries.ml @@ -1448,6 +1448,14 @@ let () = optread = Nativenorm.get_profiling_enabled; optwrite = Nativenorm.set_profiling_enabled } +let () = + declare_bool_option + { optdepr = false; + optname = "enable native compute timing"; + optkey = ["NativeCompute"; "Timing"]; + optread = Nativenorm.get_timing_enabled; + optwrite = Nativenorm.set_timing_enabled } + let _ = declare_bool_option { optdepr = false; |
