From: John Whitington <john@coherentgraphics.co.uk>
To: Michael Hicks <mwh@cs.umd.edu>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] performance profiling on Mac OS?
Date: Mon, 10 Aug 2015 10:38:04 +0100 [thread overview]
Message-ID: <55C870FC.2030001@coherentgraphics.co.uk> (raw)
In-Reply-To: <CAFb7wiVx7w1M==3pdkTLTdWv2uCAN1jbeKssyAhNbOf5nkTVXg@mail.gmail.com>
Hi,
Michael Hicks wrote:
> Hi all.
>
> I have an OCaml program that uses the C FFI extensively, and I'm trying
> to profile the overall program (both the OCaml and C parts), to figure
> out how much time is spent where.
>
> Do people have suggestions for doing profiling on Mac OS?
>
> Since it uses LLVM, and not gcc, it seems that gprof (per the OCaml
> manual) is not an option.
instruments(1) and its graphical equivalent Instruments.app come with
XCode. It does seem to work reasonably well with OCaml code compiled and
linked with -g. At least, not much worse than the output of gprof on
OCaml code. There is an option in the graphical one called something
like "Invert graph" which helps to show where most time was spent.
Or, if it's not an OS X specific program, compile it in a Linux VM and
use gprof or similar.
Thanks,
--
John Whitington
Director, Coherent Graphics Ltd
http://www.coherentpdf.com/
prev parent reply other threads:[~2015-08-10 9:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-09 3:22 Michael Hicks
2015-08-10 9:38 ` John Whitington [this message]
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=55C870FC.2030001@coherentgraphics.co.uk \
--to=john@coherentgraphics.co.uk \
--cc=caml-list@inria.fr \
--cc=mwh@cs.umd.edu \
/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;
as well as URLs for NNTP newsgroup(s).