highWaterMark: Memory usage statistics

[ deprecated, development, program ] [ Propose Tags ]
Deprecated

A library for determining the amount of memory allocated a t any point by a GHC program. Note - it only counts memory under the GHC storage manager, it does not count malloc, mmap'd stuff etc.

Obsolete.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1, 0.1.1
Dependencies base, ghc [details]
License LicenseRef-GPL
Author Bernie Pope <bjpop@csse.unimelb.edu.au>
Maintainer none
Category Development
Home page http://www.cs.mu.oz.au/~bjpop/code.html
Uploaded by GwernBranwen at 2008-03-17T04:59:43Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Executables highWaterMark
Downloads 1928 total (5 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2017-01-03 [all 8 reports]

Readme for highWaterMark-0.1.1

[back to package description]
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.