Class MemoryDiagnostics
Utilities to track memory usage and detect memory leaks from not disposing ImageSharp objects.
Inherited Members
Namespace: SixLabors.ImageSharp.Diagnostics
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class MemoryDiagnostics
Properties
TotalUndisposedAllocationCount
Gets a value indicating the total number of memory resource objects leaked to the finalizer.
Declaration
public static int TotalUndisposedAllocationCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
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.
Declaration
public static event UndisposedAllocationDelegate UndisposedAllocation
Event Type
| Type | Description |
|---|---|
| UndisposedAllocationDelegate |