1
2OCAMLPROF(1)                General Commands Manual               OCAMLPROF(1)
3
4
5

NAME

7       ocamlprof - The Objective Caml profiler
8
9

SYNOPSIS

11       ocamlprof [ -f dump-file ] [ -F text ] filename ...
12
13

DESCRIPTION

15       The  ocamlprof command prints execution counts gathered during the exe‐
16       cution of a Objective Caml program instrumented with ocamlcp(1).
17
18       It produces a source listing of the program modules given as  arguments
19       where execution counts have been inserted as comments. For instance,
20
21       ocamlprof foo.ml
22
23       prints the source code for the foo module, with comments indicating how
24       many times the functions in this module have  been  called.  Naturally,
25       this information is accurate only if the source file has not been modi‐
26       fied since the profiling execution took place.
27
28

OPTIONS

30       -f dumpfile
31              Specifies an alternate dump file of profiling information.
32
33       -F string
34              Specifies an additional  string  to  be  output  with  profiling
35              information.   By  default,  ocamlprof(1) will annotate programs
36              with comments of the form (* n *) where n is the  counter  value
37              for  a  profiling point. With option -F s the annotation will be
38              (* sn *)
39
40       -impl filename
41              Compile the file filename as an implementation file, even if its
42              extension is not .ml.
43
44       -intf filename
45              Compile  the  file  filename  as  an interface file, even if its
46              extension is not .mli.
47
48       -version
49              Print the version number of ocamlprof and exit.
50
51       -help or --help
52              Display a short usage summary and exit.
53
54

SEE ALSO

56       ocamlcp(1).
57       The Objective Caml user's manual, chapter "Profiling".
58
59
60
61                                                                  OCAMLPROF(1)
Impressum