Thanks a lot, I used it and its seems to be working. 

I am wondering if I can know the memory usage of a specific function in the whole file ?

thanks 

Umair  



On Mon, Jan 30, 2017 at 11:50 AM, Evgeny Roubinchtein <zhenya1007@gmail.com> wrote:

--
Best,
Zhenya

On Mon, Jan 30, 2017 at 11:42 AM, Van Chan Ngo <chan.ngo2203@gmail.com> wrote:
Hello Umair,

One option is using a profiling tool, for example the following one

Best,
Van Chan Ngo

On Jan 30, 2017, at 11:39 AM, Umair Siddique <umair.hvg@gmail.com> wrote:

Dear All, 


I am wondering  what is the best way to find the time and memory usage (in words or bytes) of an Ocaml function, e.g., Factorial) on MAC?


Thanks 


Umair