Z to Startup
Mathjax
Sunday, May 18, 2014
OCaml Profiling Idiom
The idiom to profile an Ocaml program is:
ocamlcp -p a program.ml -o program
cat input | ./program
ocamlprof program.ml > program.ml.prof
The file
program.ml.prof
will contain a source listing of program.ml but annotated with call counts.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment