aboutsummaryrefslogtreecommitdiff
path: root/lib/cProfile.ml
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2020-03-10 01:06:34 -0400
committerEmilio Jesus Gallego Arias2021-03-30 15:37:00 +0200
commit5d3c0a0326af68e85f1f1cfc6bfa2214b0052de8 (patch)
tree4306352ac9163de2562ed3600ac468d26284d05a /lib/cProfile.ml
parent6effcc263beded0d530d724fab8edae86815adf8 (diff)
[flags] [profile] Remove bit-rotten CProfile code.
As of today Coq has the `CProfile` infrastructure disabled by default, untested, and not easily accessible. It was decided that `CProfile` should remain not user-accessible, and only available thus by manual editing of Coq code to switch the flag and manually instrument functions. We thus remove all bitrotten dead code.
Diffstat (limited to 'lib/cProfile.ml')
-rw-r--r--lib/cProfile.ml6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/cProfile.ml b/lib/cProfile.ml
index b68d35d2d4..7245b35d59 100644
--- a/lib/cProfile.ml
+++ b/lib/cProfile.ml
@@ -8,6 +8,8 @@
(* * (see LICENSE file for the text of the license) *)
(************************************************************************)
+let enable_profile = false
+
let word_length = Sys.word_size / 8
let float_of_time t = float_of_int t /. 100.
@@ -87,9 +89,9 @@ let init_alloc = ref 0.0
let reset_profile () = List.iter reset_record !prof_table
let init_profile () =
- (* We test Flags.profile as a way to support declaring profiled
+ (* We test enable_profile as a way to support declaring profiled
functions in plugins *)
- if !prof_table <> [] || Flags.profile then begin
+ if !prof_table <> [] || enable_profile then begin
let outside = create_record () in
stack := [outside];
last_alloc := get_alloc ();