ObjectPoolBase
Description
- Derived from
-
Disposable abstract
- Extended by
Non-generic base class for ObjectPool.
Public / Methods
DebugIntervalTick
This method must be called repeatedly in order to provide the periodic output of debug logging messages.
This method is called automatically from the following methods:
Client code should call this method only if the above calls are not sufficient for maintaining periodic debug output.
- See also
Public / Attributes
DebugInterval
Sets the time interval to use for logging usage statistics of this object pool.
Log messages are emitted in the category Tinman.Core.System.ObjectPool
using the LogVerbosity.Info message level. Each log message carries the following information:
N:00000 D:00000 G:52992 P:52814 C:00414/01024 S:00000/00000 (RenderStateSequencer_Batch)
where the individual numbers have this meaning (referring to the time interval since the last log message):
-
N
: Number of newly created pool objects (the pool has underflowed). -
D
: Number of deleted pool objects (the pool has overflowed). -
G
: Number of objects taken from the pool. -
P
: Number of objects returned to the pool. -
C
: Maximum number of objects taken from the pool without returning (left), object count limit of the pool (right). -
S
: Maximum size of objects taken from the pool without returning (left), memory size limit in KB of the pool (right).
The default value is 0
(i.e. disabled).
- See also