English version
Accueil     Ŕ propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis ŕ jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml ŕ l'adresse ocaml.org.

Browse thread
time profiling and nested function inlining
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-12-06 (08:53)
From: Daniel_Bünzli <daniel.buenzli@e...>
Subject: Re: [Caml-list] time profiling and nested function inlining
If you have the development tools installed, you can profile on  
macosx using shark (you don't even need to compile with -p). Invoke  
it from the command line on your executable as follows:

 > shark -i -1 -q ./yourexec.opt args

This will write a .mshark file in the directory that you can open  
with Shark.app.

 > open *.mshark



P.S. I remember having problems if the executable did not run for  
long enough, shark couldn't take any samples.