Deprecated

highWaterMark

Memory usage statistics http://www.cs.mu.oz.au/~bjpop/code.html

Latest on Hackage:0.1.1

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

GPL licensed by Bernie Pope
Maintained by None
These files implement a very simple facility for finding out
a "high-water mark" in the amount of memory your GHC-Haskell
program is using. It only counts memory managed by GHC's storage
manager, so, as Simon Marlow says:

Note that this only counts memory allocated by the GHC storage manager;
it doesn't include the data segments, malloc(), the C stack, or other
mmap()'d stuff. Be careful if your program is using any of these other
allocation methods (perhaps via an external library through the FFI).

The file Main.hs is provided here as an example, to compile it, use:

ghc HighWaterMark.hs mblocks.c Main.hs

Cheers,
Bernie Pope.
Depends on:
Used by 1 package:
comments powered byDisqus