Share via


IDkmManagedHeapSampler178 Interface

Definition

Interface implemented by heap sampler to detect event handler leaks.

Implementations of this interface may restrict when they are called using a filter defined in their component configuration. The following properties may be used: EngineId, RuntimeId.

This API was introduced in Visual Studio 17 Update 8 (DkmApiVersion.VS17Update8).

public interface IDkmManagedHeapSampler178
type IDkmManagedHeapSampler178 = interface
Public Interface IDkmManagedHeapSampler178

Methods

AnalyzeEventHandlerLeaks(DkmManagedHeapSampler, String[])

Analyze the event handler leaks found on the heap, without returning them. Should be called after the objects walk, and never after the roots walk as the process may have resumed.

GetNextEventHandlerLeaks(DkmManagedHeapSampler, UInt32)

Attempts to retrieve the value of the next requested portion of the instances of the event handler leaks from the managed heap. Should not be called before the heap walk has completed.

GetNextEventHandlerLeaksJMC(DkmManagedHeapSampler, UInt32)

Attempts to retrieve the value of the next requested portion of the instances of the event handler leaks from the managed heap with excluded types filtered out. Should not be called before the heap walk has completed.

GetTotalBytesWastedByEventHandlerLeaks(DkmManagedHeapSampler)

Returns the total amount of bytes leaked by event handlers on the managed heap. This calculation is separate from the BytesWasted value of each leak info struct. This is because the sub trees of leaks can overlap, leading to double counting retained objects.

GetTotalBytesWastedByEventHandlerLeaksJMC(DkmManagedHeapSampler)

Returns the total amount of bytes leaked by event handlers on the managed heap with with excluded types filtered out. This calculation is separate from the BytesWasted value of each leak info struct. This is because the sub trees of leaks can overlap, leading to double counting retained objects.

Applies to