C# Class CodeProject.ObjectPool.ObjectPoolDiagnostics

A simple class to track stats during execution. By default, this class does not record anything, since its Enabled property is set to false.
Mostrar archivo Open project: pomma89/ObjectPool

Public Methods

Method Description
ObjectPoolDiagnostics ( ) : System.Threading

Creates a new diagnostics object, ready to record Object Pool main events.

Protected Methods

Method Description
IncrementObjectResurrectionCount ( ) : void

Increments the count of objects returned to pool by resurrection.

IncrementObjectsCreatedCount ( ) : void

Increments the objects created count.

IncrementObjectsDestroyedCount ( ) : void

Increments the objects destroyed count.

IncrementPoolObjectHitCount ( ) : void

Increments the pool object hit count.

IncrementPoolObjectMissCount ( ) : void

Increments the pool object miss count.

IncrementPoolOverflowCount ( ) : void

Increments the pool overflow count.

IncrementResetStateFailedCount ( ) : void

Increments the reset state failed count.

IncrementReturnedToPoolCount ( ) : void

Increments the returned to pool count.

Method Details

IncrementObjectResurrectionCount() protected method

Increments the count of objects returned to pool by resurrection.
protected IncrementObjectResurrectionCount ( ) : void
return void

IncrementObjectsCreatedCount() protected method

Increments the objects created count.
protected IncrementObjectsCreatedCount ( ) : void
return void

IncrementObjectsDestroyedCount() protected method

Increments the objects destroyed count.
protected IncrementObjectsDestroyedCount ( ) : void
return void

IncrementPoolObjectHitCount() protected method

Increments the pool object hit count.
protected IncrementPoolObjectHitCount ( ) : void
return void

IncrementPoolObjectMissCount() protected method

Increments the pool object miss count.
protected IncrementPoolObjectMissCount ( ) : void
return void

IncrementPoolOverflowCount() protected method

Increments the pool overflow count.
protected IncrementPoolOverflowCount ( ) : void
return void

IncrementResetStateFailedCount() protected method

Increments the reset state failed count.
protected IncrementResetStateFailedCount ( ) : void
return void

IncrementReturnedToPoolCount() protected method

Increments the returned to pool count.
protected IncrementReturnedToPoolCount ( ) : void
return void

ObjectPoolDiagnostics() public method

Creates a new diagnostics object, ready to record Object Pool main events.
public ObjectPoolDiagnostics ( ) : System.Threading
return System.Threading