[Haskell-beginners] garbage collected object

Ryan Trinkle ryan.trinkle at gmail.com
Wed Jan 14 12:17:33 UTC 2015


You can use the 'vacuum' package to explore the heap, and you can use
System.Mem.Weak to create a reference to something that won't keep it from
being GCed and will let you check on it later.  You can also use the
built-in heap profiling capabilities to track things like the memory usage
of the entire heap from moment to moment.

On Wed, Jan 14, 2015 at 5:24 AM, Elise Huard <haskell at elisehuard.be> wrote:

> Hi,
>
> Maybe a stupid question: is there a way to check whether a particular
> data structure (or set of data structures) has been garbage collected?
> Or indirectly: is there a way to check what's still alive in the heap,
> so that you can potentially diff from one moment to another?
> Thanks,
>
> Elise Huard
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20150114/03d7376f/attachment.html>


More information about the Beginners mailing list