Share via


DkmManagedHeapSampler.GetTotalBytesWastedByEventHandlerLeaks Method

Definition

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.

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 GetTotalBytesWastedByEventHandlerLeaks ();
member this.GetTotalBytesWastedByEventHandlerLeaks : unit -> uint64
Public Function GetTotalBytesWastedByEventHandlerLeaks () As ULong

Returns

[Out] The total amount leaked by event handlers.

Applies to