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
| Edit this page View SourceTotalUndisposedAllocationCount
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
| Edit this page View SourceUndisposedAllocation
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 |