Show / Hide Table of Contents

Class Stats

A class that provides the statistics of memory usage and opened files.

Inheritance
object
Stats
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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.

In this article
Back to top Generated by DocFX