getStats method

ObjectPoolStats getStats()

Gets pool statistics

Implementation

ObjectPoolStats getStats() {
  return ObjectPoolStats(
    logEntryPoolSize: _logEntryPool.length,
    logEntryAllocations: _logEntryAllocations,
    logEntryReuses: _logEntryReuses,
    logEventPoolSize: _logEventPool.length,
    logEventAllocations: _logEventAllocations,
    logEventReuses: _logEventReuses,
    stringBufferPoolSize: _stringBufferPool.length,
    stringBufferAllocations: _stringBufferAllocations,
    stringBufferReuses: _stringBufferReuses,
    contextMapPoolSize: _contextMapPool.length,
    contextMapAllocations: _contextMapAllocations,
    contextMapReuses: _contextMapReuses,
  );
}