Instances

On the left side, a list of the live instances of the selected type or resource is shown.

The details of an instance can be viewed by double-clicking an entry in the Instances table or using the Show details command.

The list can be sorted by clicking on the column headers. The following information is presented in the instance table:

•      Analysis issue
Indicates if the memory analyser has found an issue related to the instance. Further information about the issue is presented in the  tooltip of the issue icon. For more information about analysis issues, see Automatic Memory Analysis.

•      NewInstance New instance
This column indicates whether the instance is new, i.e., the instance did not exist in the comparison snapshot. If the new instance symbol is shown, then this instance is new; otherwise, it existed in the comparison snapshot as well.

•      DisposedInstance Disposed instance
This column is only included for disposable types and indicates whether the instance has been disposed. If the disposed instance symbol is shown, then this instance has been disposed.

•      MemLeak Memory leak instance
 
This column is only included for managed types and indicates whether the instance has been identified as a potential memory leak instance using the .NET Memory Profiler API. If the memory leak symbol is shown, then this instance has been identified as a potential memory leak. For more information about memory leak detection, see .NET Memory Profiler API.

•      Creation context
This column is only included for unmanaged resources and indicates the creation context of the instance using the following symbols:

ManagedClass   Managed runtime

UnmanagedInterop   Unmanaged interop

OtherUnmanaged   Other unmanaged

For more information about creation contexts, see Creation Context.

•      Instance
This column shows the instance number. This number is unique for an instance during the profiler session.

•      Root kind
If the selected type is the <GCHandle> pseudo type, this column shows the kind of the GCHandle. For more information about runtime GC handles, see GC Handle Identification.

•      Referenced by (count)
This column is only included for managed types and shows the number of referrers to this instance. A referrer is a field, variable, or parameter that references this instance.

•      Wrapped by (count)
This column is only included for unmanaged resources and shows the number of managed instances that wrap this instance  (i.e., contain a field that contains the resource instance identifier). For more information about wrapped instances, see ­Wrapped by.

•      Instance bytes
This column shows the number of bytes used by the instance.

•      Held instances
This column shows the number of instances that are held by the instance. This column is not included by default, but can be included by customizing the columns.

•      Held bytes
This column shows the number of bytes that are used by instances that are held by the instance.

•      Reachable instances
This column shows the number of instances that are reachable from the instance. This column is not included by default, but can be included by customizing the columns.

•      Reachable bytes
This column shows the number of bytes that are used by instances that are reachable from the instance. This column is not included by default, but can be included by customizing the columns.

•      Age
This column is only included for managed types and shows the age of the instance. The age is increased by one each time the instance survives a garbage collect.

•      Identifier
This column is only included for unmanaged resources and shows the unmanaged resource identifier value of the instance (e.g., a HANDLE value).

For more information about held and reachable instances, see Held and Reachable Instances.

NOTE! The held and reachable values need to be calculated for each instance in the list. This calculation may take a while, and the columns will be empty while the calculation is in progress.

 

 

.NET Memory Profiler User Manual

© Copyright 2002-2009. SciTech Software AB.

For information about .NET Memory Profiler, see the product site at http://memprofiler.com

.NET Memory Profiler is developed by SciTech Software AB