<div dir="ltr">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.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 14, 2015 at 5:24 AM, Elise Huard <span dir="ltr"><<a href="mailto:haskell@elisehuard.be" target="_blank">haskell@elisehuard.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Maybe a stupid question: is there a way to check whether a particular<br>
data structure (or set of data structures) has been garbage collected?<br>
Or indirectly: is there a way to check what's still alive in the heap,<br>
so that you can potentially diff from one moment to another?<br>
Thanks,<br>
<br>
Elise Huard<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
</blockquote></div><br></div>