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
19
20
21
22 type file = string
23
24
25
26
27
28 val reset : unit -> unit
29
30 erase all recorded profile information
31
32
33
34 val record_call : ?accumulate:bool -> string -> (unit -> 'a) -> 'a
35
36
37 record_call pass f calls f and records its profile information.
38
39
40
41 val record : ?accumulate:bool -> string -> ('a -> 'b) -> 'a -> 'b
42
43
44 record pass f arg records the profile information of f arg
45
46
47
48 type column = [ `Abs_top_heap | `Alloc | `Time | `Top_heap ]
49
50
51
52
53
54 val print : Format.formatter -> column list -> unit
55
56 Prints the selected recorded profiling information to the formatter.
57
58
59
60
61 === Command line flags ===
62
63
64 val options_doc : string
65
66
67
68
69 val all_columns : column list
70
71
72
73
74
75 === A few pass names that are needed in several places, and shared to
76 avoid typos. ===
77
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 2019-02-02 Profile(3)