Version 1.2 supports a command to dump GC Handles by type. Actually, support for this command was suggested by Ilya Ryzhenkov (ReSharper Product Manager at JetBrains) .
Download it from here
To Do List is to dump all the handles for a type along with stats with an option to specify the # of handles. For example, if there are 100 strong gchandles, you may want to print just 10 of them or so
GCHandlesByType(gcht)
————————————————
Get GC Handles Stat by Type
————————————————
!GCHandlesByType provides statistics about GCHandles by type.
Supported Types are
1. Pinned(p)
2. AsyncPinned(ap)
3. Strong(s)
4. WeakLong(wl)
5. WeakShort(ws)
6. RefCount(r)
Example Syntax
!gcht [-perdomain] -t <type>
-perdomain option, will display the stat broken down by AppDomain.
type specified is not case sensitive, for example command syntax to print the
stat for Strong handle type is
0:003> !gcht -t strong
||
0:003> !gcht -t s
||
0:003> !gcht -t Strong
Strong GC Handle Statistics:
Strong Handles: 15
Statistics:
MT Count TotalSize Class Name
793040bc 1 16 System.Object[]
79330fb8 1 28 System.SharedStatics
79331e38 2 48 System.Reflection.Assembly
79330ec0 1 56 System.Threading.Thread
79330c30 1 72 System.ExecutionEngineException
79330ba0 1 72 System.StackOverflowException
79330b10 1 72 System.OutOfMemoryException
793310cc 1 100 System.AppDomain
793325b0 4 144 System.Security.PermissionSet
79330cc0 2 144 System.Threading.ThreadAbortException
Total 15 objects
——————————
Download it from here