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

NAME

6       ocamlprof - The OCaml profiler
7
8

SYNOPSIS

10       ocamlprof [ options ] filename ...
11
12

DESCRIPTION

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

OPTIONS

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

SEE ALSO

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