[Haskell-cafe] Current heap size and other runtime statistics -- API for accessing in GHC?
Don Stewart
dons00 at gmail.com
Mon Apr 11 01:52:02 CEST 2011
I'd like a proper FFI binding for getting at Stats.c dynamically. So I
can write programs that determine their own stats about the GC and so
on.
On Sun, Apr 10, 2011 at 2:30 PM, Ryan Newton <rrnewton at gmail.com> wrote:
> Hi cafe,
> The rtsopts (-s etc) can provide some nice debugging information regarding
> memory management. And System.Mem.performGC can initiate garbage
> collection. But are there APIs for querying the current state of the heap?
> I've googled and come up dry.
> In this case I'm running benchmarks and for the sake of fair comparison I
> want to make sure that everything from a previous run is cleaned up before
> the next run.
> Thanks,
> -Ryan
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
More information about the Haskell-Cafe
mailing list