1Profile(3) OCaml library Profile(3)
2
3
4
6 Profile - Compiler performance recording
7
9 Module Profile
10
12 Module Profile
13 : sig end
14
15
16 Compiler performance recording
17
18 Warning: this module is unstable and part of Compiler_libs .
19
20
21
22
23
24 type file = string
25
26
27
28
29
30 val reset : unit -> unit
31
32 erase all recorded profile information
33
34
35
36 val record_call : ?accumulate:bool -> string -> (unit -> 'a) -> 'a
37
38
39 record_call pass f calls f and records its profile information.
40
41
42
43 val record : ?accumulate:bool -> string -> ('a -> 'b) -> 'a -> 'b
44
45
46 record pass f arg records the profile information of f arg
47
48
49
50 type column = [ `Abs_top_heap | `Alloc | `Time | `Top_heap ]
51
52
53
54
55
56 val print : Format.formatter -> column list -> unit
57
58 Prints the selected recorded profiling information to the formatter.
59
60
61
62
63 Command line flags
64
65 val options_doc : string
66
67
68
69
70 val all_columns : column list
71
72
73
74
75
76 A few pass names that are needed in several places, and shared to avoid
77 typos.
78
79 val generate : string
80
81
82
83
84 val transl : string
85
86
87
88
89 val typing : string
90
91
92
93
94
95
96OCamldoc 2021-07-22 Profile(3)