Browse thread
Re: overhead of GC in caml runtime?
- Damien Doligez
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Damien Doligez <Damien.Doligez@i...> |
| Subject: | Re: overhead of GC in caml runtime? |
>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