| Author |
Message |
PatrickCBrown
Joined: 07 Jun 2011 Posts: 1
|
Posted: Tue Jun 07, 2011 5:19 pm Post subject: Filter based on Finalizer Pending? |
|
|
Hi
Is there a way in Memory Profiler 7 that I can filter only objects waiting for their Finalizer to be called?
Thank you,
Patrick |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6369 Location: Red Gate Software
|
Posted: Thu Jun 09, 2011 12:52 pm Post subject: |
|
|
The only filters related to finalizers are the "objects that are disposable" and "objects that are/are not disposed", and "zombie objects" filters. I think you would be most interested in zombies because it includes objects on the finalizer queue which, for some reason, could not be collected. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
AndrewH
Joined: 17 Aug 2006 Posts: 137
|
Posted: Fri Jun 10, 2011 11:47 am Post subject: |
|
|
There are actually several filters relating to this.
Most directly, you probably want the 'Kept in memory exclusively by GC root of type finalizer queue' filter, which will give all of the objects that are only in memory because an object hasn't been finalized.
You can limit this only to the objects that are actually on the finalizer queue by turning on the 'Objects that are GC roots' filter. _________________ Andrew Hunter
Software Developer
Red Gate Software Ltd. |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group