Ocaml_utils.ProfileCompiler performance recording
Warning: this module is unstable and part of compiler-libs.
module Counters : sig ... endrecord_call pass f calls f and records its profile information.
val record_call_with_counters :
?accumulate:bool ->
counter_f:('a -> Counters.t) ->
string ->
(unit -> 'a) ->
'arecord_call_with_counters counter_f pass f calls f and records its profile information (including counter information given by calling counter_f on the result of calling f)
record pass f arg records the profile information of f arg
val record_with_counters :
?accumulate:bool ->
counter_f:('b -> Counters.t) ->
string ->
('a -> 'b) ->
'a ->
'brecord_with_counters counter_f pass f arg records the profile information of f arg and records counter information given by calling counter_f on the result of f arg
Annotates profiling pass for file names.
val print :
Format.formatter ->
Clflags.profile_column list ->
timings_precision:int ->
unitPrints the selected recorded profiling information to the formatter.
val output_to_csv :
Format.formatter ->
Clflags.profile_column list ->
timings_precision:int ->
unitOutputs the selected recorded profiling information in CSV format to the formatter.
Command line flags
val all_columns : Clflags.profile_column listA few pass names that are needed in several places, and shared to avoid typos.