共用方式為


IMemoryLeakTrackerService.GetLivingObjects Method

Definition

Overloads

GetLivingObjects()

Gets snapshot of all living objects currently. May require UI thread depending on the object being tracked. Only supposed to be called in Telemetry or Test code.

GetLivingObjects<T>()

Get snapshot of all living object in memory. May require UI thread depending on the object being tracked. Only supposed to be called in Telemetry or Test code.

GetLivingObjects()

Gets snapshot of all living objects currently. May require UI thread depending on the object being tracked. Only supposed to be called in Telemetry or Test code.

public:
 System::Collections::Generic::IReadOnlyList<Microsoft::VisualStudio::Utilities::LivingObjectRecord ^> ^ GetLivingObjects();
public System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.Utilities.LivingObjectRecord> GetLivingObjects ();
abstract member GetLivingObjects : unit -> System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.Utilities.LivingObjectRecord>
Public Function GetLivingObjects () As IReadOnlyList(Of LivingObjectRecord)

Returns

Applies to

GetLivingObjects<T>()

Get snapshot of all living object in memory. May require UI thread depending on the object being tracked. Only supposed to be called in Telemetry or Test code.

public:
generic <typename T>
 where T : class System::Collections::Generic::IReadOnlyList<Microsoft::VisualStudio::Utilities::LivingObjectRecord<T> ^> ^ GetLivingObjects();
public System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.Utilities.LivingObjectRecord<T>> GetLivingObjects<T> () where T : class;
abstract member GetLivingObjects : unit -> System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.Utilities.LivingObjectRecord<'T>> (requires 'T : null)
Public Function GetLivingObjects(Of T As Class) () As IReadOnlyList(Of LivingObjectRecord(Of T))

Type Parameters

T

Returns

Applies to