IDkmManagedHeapSampler178.GetTotalBytesWastedByEventHandlerLeaksJMC Method

Definition

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.

public ulong GetTotalBytesWastedByEventHandlerLeaksJMC(Microsoft.VisualStudio.Debugger.Clr.DkmManagedHeapSampler managedHeapSampler);
abstract member GetTotalBytesWastedByEventHandlerLeaksJMC : Microsoft.VisualStudio.Debugger.Clr.DkmManagedHeapSampler -> uint64
Public Function GetTotalBytesWastedByEventHandlerLeaksJMC (managedHeapSampler As DkmManagedHeapSampler) As ULong

Parameters

managedHeapSampler
DkmManagedHeapSampler

[In] DkmManagedHeapSampler represents a sampler for objects in the managed heap.

Returns

[Out] The total amount leaked by event handlers filtered by excluded types.

Applies to