Class PooledByteBufAllocatorMetric
java.lang.Object
io.netty.buffer.PooledByteBufAllocatorMetric
- All Implemented Interfaces:
ByteBufAllocatorMetric
Exposed metric for
PooledByteBufAllocator.-
Method Summary
Modifier and TypeMethodDescriptionintReturn the chunk size for an arena.Return aListof all directPoolArenaMetrics that are provided by this pool.Return aListof all heapPoolArenaMetrics that are provided by this pool.intReturn the size of the normal cache.intReturn the number of direct arenas.intReturn the number of heap arenas.intReturn the number of thread local caches used by thisPooledByteBufAllocator.intReturn the size of the small cache.intDeprecated.Tiny caches have been merged into small caches.toString()longReturns the number of bytes of direct memory used by aByteBufAllocatoror-1if unknown.longReturns the number of bytes of heap memory used by aByteBufAllocatoror-1if unknown.
-
Method Details
-
numHeapArenas
public int numHeapArenas()Return the number of heap arenas. -
numDirectArenas
public int numDirectArenas()Return the number of direct arenas. -
heapArenas
Return aListof all heapPoolArenaMetrics that are provided by this pool. -
directArenas
Return aListof all directPoolArenaMetrics that are provided by this pool. -
numThreadLocalCaches
public int numThreadLocalCaches()Return the number of thread local caches used by thisPooledByteBufAllocator. -
tinyCacheSize
Deprecated.Tiny caches have been merged into small caches.Return the size of the tiny cache. -
smallCacheSize
public int smallCacheSize()Return the size of the small cache. -
normalCacheSize
public int normalCacheSize()Return the size of the normal cache. -
chunkSize
public int chunkSize()Return the chunk size for an arena. -
usedHeapMemory
public long usedHeapMemory()Description copied from interface:ByteBufAllocatorMetricReturns the number of bytes of heap memory used by aByteBufAllocatoror-1if unknown.- Specified by:
usedHeapMemoryin interfaceByteBufAllocatorMetric
-
usedDirectMemory
public long usedDirectMemory()Description copied from interface:ByteBufAllocatorMetricReturns the number of bytes of direct memory used by aByteBufAllocatoror-1if unknown.- Specified by:
usedDirectMemoryin interfaceByteBufAllocatorMetric
-
toString
-