caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Ocaml 3.07 memory profiling
@ 2004-04-24 11:58 Fabrice Le Fessant
  2004-06-02 18:07 ` [Caml-list] " Bernd Kuhls
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Le Fessant @ 2004-04-24 11:58 UTC (permalink / raw)
  To: caml-list



Hello,

  I've written a small patch to Ocaml-3.07 to do some memory profiling
on running programs. The patch requires to recompile and install
Ocaml, and to recompile your program with it. It doesn't cost anything
during the execution of the program, it just requires a call to
"Gc.dump_heap" at some point to dump an image of the memory on disk
that will be used by the analyser, that will display the memory
retained (per root) and used (per type of data), at least when it can
identify them. It's just a 3-days work, thus it needs still to be
improved a lot, but I could find the bug I was looking for thanks to
it, so I think it is worth a first beta release...

  http://pauillac.inria.fr/~lefessan/src/memprof-ocaml-3.07.tar.gz

Best regards,
- Fabrice Le Fessant
Comete, INRIA-Futurs and Ecole Polytechnique

-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Caml-list] Re: Ocaml 3.07 memory profiling
  2004-04-24 11:58 [Caml-list] Ocaml 3.07 memory profiling Fabrice Le Fessant
@ 2004-06-02 18:07 ` Bernd Kuhls
       [not found]   ` <FF087352-B529-11D8-BA22-000A95DDB608@cs.uni-sb.de>
  0 siblings, 1 reply; 3+ messages in thread
From: Bernd Kuhls @ 2004-06-02 18:07 UTC (permalink / raw)
  To: caml-list

Fabrice Le Fessant wrote:

>   I've written a small patch to Ocaml-3.07 to do some memory profiling
> on running programs.

Hi,

I tried your patch but could not compile Ocaml 3.07pl2 with it:

make world
...

boot/ocamlrun boot/ocamlc -nostdlib -I boot  -linkall -o ocaml.tmp
toplevel/toplevellib.cma toplevel/topstart.cmo
Error while linking boot/stdlib.cma(Gc):
The external function `dump_heap' is not available

System is i686, Debian Sid.

- spiralvoice

-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Caml-list] Re: Re: Ocaml 3.07 memory profiling
       [not found]   ` <FF087352-B529-11D8-BA22-000A95DDB608@cs.uni-sb.de>
@ 2004-06-03  7:25     ` spiralvoice
  0 siblings, 0 replies; 3+ messages in thread
From: spiralvoice @ 2004-06-03  7:25 UTC (permalink / raw)
  To: caml-list

On Do 03 Jun 2004 07:48:18a Christian Lindig wrote:

>> I tried your patch but could not compile Ocaml 3.07pl2 with it:
>> make world
> 
> Have you tried "make world; make bootstrap; make bootstrap"?

Hi,

I don´t get this far. The first "make world" is already failing...

- Bernd

-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-06-03 13:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-24 11:58 [Caml-list] Ocaml 3.07 memory profiling Fabrice Le Fessant
2004-06-02 18:07 ` [Caml-list] " Bernd Kuhls
     [not found]   ` <FF087352-B529-11D8-BA22-000A95DDB608@cs.uni-sb.de>
2004-06-03  7:25     ` [Caml-list] " spiralvoice

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).