Red Gate forums :: View topic - Filter based on Finalizer Pending?
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Memory Profiler 7
ANTS Memory Profiler 7 forum

Filter based on Finalizer Pending?

Search in ANTS Memory Profiler 7 forum
Post new topic   Reply to topic
Jump to:  
Author Message
PatrickCBrown



Joined: 07 Jun 2011
Posts: 1

PostPosted: Tue Jun 07, 2011 5:19 pm    Post subject: Filter based on Finalizer Pending? Reply with quote

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
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6577

PostPosted: Thu Jun 09, 2011 12:52 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
AndrewH



Joined: 17 Aug 2006
Posts: 137

PostPosted: Fri Jun 10, 2011 11:47 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic 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