ObjectPoolStatsBuilder

Description

sealed class Tinman.Core.System.ObjectPoolStatsBuilder

Helper class for building ObjectPoolStats values.

Public / Methods

Build


public method Build → (2)

pool in : IObjectPoolBase

[not-null]
The object pool.

clear in : bool

Call Clear before returning?

returns → ObjectPoolStats

The built statistic values.

Builds a new ObjectPoolStats from the accumulated values.

Clear


public method Clear → ()

Clears all accumulated values to zero.

Count​Create


public method CountCreate → ()

Increments the counter for ObjectPoolStats.CountCreate.

Count​Delete


public method CountDelete → ()

Increments the counter for ObjectPoolStats.CountDelete.

Count​Get


public method CountGet → (1)

obj in : object

The object that is being get from the pool.

returns → int64

The memory consumption of obj in.

Increments the counter for ObjectPoolStats.CountGet.

Count​Put


public method CountPut → (1)

obj in : object

The object that is being put into the pool.

returns → int64

The memory consumption of obj in.

Increments the counter for ObjectPoolStats.CountPut.