Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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  

 > open *.mshark



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