Share via


DkmManagedHeapSampler.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.

Location constraint: API must be called from an IDE component (component level > 100,000).

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

public ulong GetTotalBytesWastedByEventHandlerLeaksJMC ();
member this.GetTotalBytesWastedByEventHandlerLeaksJMC : unit -> uint64
Public Function GetTotalBytesWastedByEventHandlerLeaksJMC () As ULong

Returns

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

Applies to