ObjectPoolStats

Description

struct Tinman.Core.System.ObjectPoolStats

Holds statistics about an IObjectPool.

The string representation of this type can be used to output log messages for tracking object pool usage. It has the following structure:

CD/0:0 GP:0/0 U:0/0 UB(b):0/0 @ Name @ Size

where the individual numbers have this meaning (referring to the time interval during which the statistic values have been collected):

Public / Constants

Empty


public static readonly attribute Empty → (ObjectPoolStats)

Empty pool statistic values (i.e., all zero).

Public / Attributes

Count​Create


public readonly attribute CountCreate → (int32)

Counts the number of requested objects that had to be created because the pool was empty.

This value is always less than or equal to CountGet.

Count​Delete


public readonly attribute CountDelete → (int32)

Counts the number of returned objects that had to be deleted because of the pool limit.

This value is always less than or equal to CountPut.

Count​Get


public readonly attribute CountGet → (int32)

Counts the number of times that an object has been requested from the pool.

Count​Put


public readonly attribute CountPut → (int32)

Counts the number of times that an object has been returned to the pool.

See also

IObjectPool.Put

Count​Used


public readonly attribute CountUsed → (int32)

Counts the maximum number of objects that have been in use (i.e., requested from the pool but not yet returned).

Count​Used​Bytes


public readonly attribute CountUsedBytes → (int64)

Counts the maximum number of bytes used by the objects that have been in use (i.e., requested from the pool but not yet returned).

Is​Empty


public attribute IsEmpty → (get)

value : bool

true if empty (i.e., all values except limits and name are zero),
false if not.

Are these pool statistics empty?

Pool​Limit​Count


public readonly attribute PoolLimitCount → (int32)

The object pool limit, see IObjectPoolBase.LimitCount.

Pool​Limit​Memory


public readonly attribute PoolLimitMemory → (int64)

The object pool limit, see IObjectPoolBase.LimitMemory.

Pool​Memory​Consumption


public readonly attribute PoolMemoryConsumption → (int64)

The object pool memory consumption, see IMemoryConsumption.MemoryConsumption.

Pool​Name


public readonly attribute PoolName → (string)

The object pool name, see IObjectPoolBase.Name.