From: Alain Frisch <alain.frisch@lexifi.com>
To: Umair Siddique <umair.hvg@gmail.com>, caml-list@inria.fr
Subject: Re: [Caml-list] Memory Usage
Date: Wed, 1 Feb 2017 10:04:52 +0100 [thread overview]
Message-ID: <a0be3cab-aaa4-6b0e-4938-d7a366bad09f@lexifi.com> (raw)
In-Reply-To: <CAFJB9SEwsP8T2=3RST+_0OSzKw0KfP4xbZBYc3zNHxOj+h9Kvg@mail.gmail.com>
If you are only interested in measuring how much a given function
allocates, you can simply call Gc.allocated_bytes before and after.
Otherwise, and in addition to other great suggestions, let me add this one:
https://github.com/LexiFi/landmarks
-- Alain
On 30/01/2017 17:39, Umair Siddique 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
next prev parent reply other threads:[~2017-02-01 9:05 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-30 16:39 Umair Siddique
2017-01-30 16:42 ` Van Chan Ngo
2017-01-30 16:50 ` Evgeny Roubinchtein
2017-01-31 18:09 ` Umair Siddique
2017-02-01 9:04 ` Alain Frisch [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-01-12 7:41 memory usage John Lepikhin
2009-01-12 8:39 ` [Caml-list] " Richard Jones
2009-01-12 9:14 ` John Lepikhin
[not found] ` <20090112114837.GB18405@janestcapital.com>
2009-01-12 15:05 ` John Lepikhin
2009-01-12 16:29 ` Florian Hars
2009-01-12 16:44 ` John Lepikhin
2008-07-11 19:49 Jean Krivine
2008-07-11 21:49 ` [Caml-list] " Till Varoquaux
2008-07-11 22:01 ` Richard Jones
2008-07-15 17:06 ` Jean Krivine
2008-07-15 19:31 ` Andres Varon
2008-07-15 19:38 ` Jean Krivine
2008-07-16 14:16 ` Andres Varon
2008-07-16 16:27 ` Jean Krivine
2008-07-16 18:07 ` Jean Krivine
2008-07-16 18:44 ` Andres Varon
2008-07-16 18:54 ` Jean Krivine
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a0be3cab-aaa4-6b0e-4938-d7a366bad09f@lexifi.com \
--to=alain.frisch@lexifi.com \
--cc=caml-list@inria.fr \
--cc=umair.hvg@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox