Class MemoryDiagnostics
- Namespace
- SixLabors.ImageSharp.Diagnostics
- Assembly
- SixLabors.ImageSharp.dll
Utilities to track memory usage and detect memory leaks from not disposing ImageSharp objects.
public static class MemoryDiagnostics
- Inheritance
-
MemoryDiagnostics
- Inherited Members
Properties
TotalUndisposedAllocationCount
Gets a value indicating the total number of memory resource objects leaked to the finalizer.
public static int TotalUndisposedAllocationCount { get; }
Property Value
Events
UndisposedAllocation
Fires when an ImageSharp object's undisposed memory resource leaks to the finalizer. The event brings significant overhead, and is intended to be used for troubleshooting only. For production diagnostics, use TotalUndisposedAllocationCount.
public static event UndisposedAllocationDelegate UndisposedAllocation