19
script is a front-end to
21
command is a front-end to
21
23
that instruments the source code, adding code to record how many times
22
24
functions are called, branches of conditionals are taken, ...
37
39
accepts the following option controlling the amount of profiling
44
45
indicate which parts of the program should be profiled:
51
function calls : a count point is set at the beginning of function bodies
51
function calls : a count point is set at the beginning of each function body
54
if... then... else: count points are set in
55
both "then" branch and "else" branch
54
.BR if \ ... \ then \ ... \ else :
55
count points are set in both
58
while, for loops: a count point is set at the beginning of
61
loops: a count point is set at the beginning of the loop body
62
"match" branches: a count point is set at the beginning of the
65
branches: a count point is set at the beginning of the
66
body of each branch of a pattern-matching
66
try...with branches: a count point is set at the
67
beginning of the body of each branch
69
For instance, compiling with
71
profiles function calls, if... then... else..., loops, and pattern
70
branches: a count point is set at the beginning of the body of each
71
branch of an exception catcher
74
For instance, compiling with
76
profiles function calls,
77
.BR if \ ... \ then \ ... \ else \ ...,
78
loops, and pattern matching.
81
that only function calls and pattern matching are profiled.
86
meaning that only function calls and pattern matching are profiled.
88
Note: due to the implementation of streams and stream patterns as
89
syntactic sugar, it is hard to predict what parts of stream expressions
90
and patterns will be profiled by a given flag. To profile a program with
91
streams, we recommend using
87
.I The Objective Caml user's manual,
98
.IR "The Objective Caml user's manual" ,
88
99
chapter "Profiling".