caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Dmitry Bely <dbely@mail.ru>
To: caml-list@inria.fr
Subject: Native code profiling under Windows?
Date: Mon, 31 Oct 2005 14:34:22 +0300	[thread overview]
Message-ID: <8xw9c43l.fsf@mail.ru> (raw)

When I try to link my project with "ocamlopt -p ..." it complains "Cannot
find file std_exit.p.cmx". Indeed, the native build did not create
a profiled version of the standard library (while -p compiler flag is
supported). Have I missed something and should build the profiled stdlib
somehow or gprof/ocamlopt -p simply does not work under Windows?

Another related question: I would also like to try some third-party
profiler tool (Intel VTune), but it requires ebp-based stack frame for each
profiled function. It is not true for ocamlopt-generated code. If I modify
the code generation part in the ocaml compiler and add

push ebp
mov  ebp, esp
...
pop  ebp

to each ocamlopt-generated function, will I break anything?

- Dmitry Bely


                 reply	other threads:[~2005-10-31 11:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=8xw9c43l.fsf@mail.ru \
    --to=dbely@mail.ru \
    --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;
as well as URLs for NNTP newsgroup(s).