9581Re: "ocaml_beginners":: Ocaml and Python (was: Writing to many files)
- Apr 1, 2008On Tue, 1 Apr 2008 15:32:56 +0100, Jon Harrop wrote
> Profiling OCaml is very easy. Just compile with -p, then run andUnless you're on OS X. In which case, gprof doesn't work (or it didn't in
> collect profiling results using gprof:
> $ ocamlopt -p foo.ml -o foo
> $ ./foo
> $ gprof foo >profile.txt
> Right at the top of "profile.txt" will be the most time consuming
> function, which should be a huge help here!
3.09, I never did check with 3.10). But that's OK, as Shark is a better
tool, anyway. See <http://developer.apple.com/tools/shark_optimize.html>,
<http://developer.apple.com/tools/sharkoptimize.html>, and the bottom of
<http://wiki.cocan.org/getting_started_with_ocaml_on_mac_os_x> for more info
on shark(plus you should have a manual on your system).
Of course, if you're not on OS X, none of the above really helps you.
William D. Neumann
- << Previous post in topic Next post in topic >>