 <p>You can get the total heap consumption and other stats via <a href="http://hackage.haskell.org/package/base/docs/GHC-Stats.html#v:getGCStats"><code>getGCStats</code></a> in module GHC.Stats, at least if you run your program with <code>+RTS -T</code>.</p>