Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Damien Doligez <Damien.Doligez@inria.fr>
To: caml-list@inria.fr
Subject: Re:  overhead of GC in caml runtime?
Date: Wed, 26 Jul 2000 11:06:53 +0200	[thread overview]
Message-ID: <200007260906.LAA09879@tobago.inria.fr> (raw)

>From: Norman Ramsey <nr@eecs.harvard.edu>

>Can anyone tell me approximately what fraction of time is
>spent in garbage collection, or even better, combined allocation and
>collection, in typical caml programs?  Or how to get caml to report
>this information for a particular program of mine?

As far as memory management is concerned, there is no typical caml
program, so you really need to get the information for your program.

GC timers have been on my to-do list for some time now but they are
going to involve non-negligible overhead, and I expect they'll have
rather poor accuracy.

In the meantime, you could compile your program with "ocamlopt -p",
guess from the names of the functions which ones belong to memory
management, and add the percentages by hand...

-- Damien



             reply	other threads:[~2000-07-27 17:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-26  9:06 Damien Doligez [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-07-25 21:47 Norman Ramsey
2000-07-28  9:52 ` Xavier Leroy

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=200007260906.LAA09879@tobago.inria.fr \
    --to=damien.doligez@inria.fr \
    --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