From: David MENTRE <david.mentre@wanadoo.fr>
To: Andrew Birkett <adb@tardis.ed.ac.uk>
Cc: <caml-list@inria.fr>
Subject: Re: [Caml-list] Profiling
Date: 23 Mar 2002 23:48:43 +0100 [thread overview]
Message-ID: <87lmci99ys.fsf@wanadoo.fr> (raw)
In-Reply-To: <Pine.GS4.4.33.0203141543480.7033-100000@davros.tardis.ed.ac.uk>
Andrew Birkett <adb@tardis.ed.ac.uk> writes:
> Ah! Let me try that one again ...
>
> Is it possible to get a profile of execution time of a bytecode program.
> Ocamlprof gives execution counts for bytecode programs, and you can gprof
> native-compiled programs for execution times. Why can't you profile
> execution times with bytecode programs?
You can (even if I doubt of its usefulness) :
1. build an ocaml with "-pg" option to cc
('./configure -prefix "gcc -pg" && make world && make install')
2. make your byte code ocaml program with the ocamlc made in step 1
3. run your program, it should produce a "gmon.out" file
4. run gprof on ocamlrun, with the "gmon.out" file in the same
directory as ocamlrun
5. admire the wonderful produced statistics :-)
Best regards,
david
--
david.mentre@wanadoo.fr
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2002-03-23 22:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-14 14:47 Andrew Birkett
2002-03-14 15:14 ` Markus Mottl
2002-03-14 15:13 ` Georges Mariano
2002-03-15 10:15 ` Markus Mottl
2002-03-15 10:45 ` [Caml-list] Ocamldot for functions and types Mattias Waldau
2002-03-15 11:10 ` Daniel de Rauglaudre
2002-03-15 15:22 ` RE : " Boris Yakobowski
2002-03-14 15:46 ` [Caml-list] Profiling Andrew Birkett
2002-03-14 16:09 ` David Monniaux
2002-03-23 22:48 ` David MENTRE [this message]
2002-03-14 16:54 ` Remi VANICAT
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=87lmci99ys.fsf@wanadoo.fr \
--to=david.mentre@wanadoo.fr \
--cc=adb@tardis.ed.ac.uk \
--cc=caml-list@inria.fr \
/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