Class Stats
A class that provides the statistics of memory usage and opened files.
Inherited Members
Namespace: NetVips
Assembly: NetVips.dll
Syntax
public static class Stats
Remarks
libvips watches the total amount of live tracked memory and uses this information to decide when to trim caches.
Properties
Allocations
Get the number of active allocations.
Declaration
public static int Allocations { get; }
Property Value
Type | Description |
---|---|
int |
Files
Get the number of open files.
Declaration
public static int Files { get; }
Property Value
Type | Description |
---|---|
int |
Mem
Get the number of bytes currently allocated vips_malloc()
and friends.
Declaration
public static int Mem { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
libvips uses this figure to decide when to start dropping cache.
MemHighwater
Returns the largest number of bytes simultaneously allocated via vips_tracked_malloc().
Declaration
public static ulong MemHighwater { get; }
Property Value
Type | Description |
---|---|
ulong |
Remarks
Handy for estimating max memory requirements for a program.