是它可以列出存储在堆的所有对象。 我愿做这样的事情:
的IEnumerable<的GCHandle> listOfObjectsInHeap = GetListOfObjectsFromHeap();
解决方案
您可以使用的分析API 以实现这一目标。遗憾的是没有管理$ C $ C。
is it possible to list all objects stored in heap. I would like to do something like this:
IEnumerable<GCHandle> listOfObjectsInHeap = GetListOfObjectsFromHeap();
解决方案
You can use the Profiling API to achieve this. Unfortunately not in managed code.