Package io.netty.buffer
Class PooledByteBufAllocatorMetric
java.lang.Object
io.netty.buffer.PooledByteBufAllocatorMetric
- All Implemented Interfaces:
ByteBufAllocatorMetric
Exposed metric for
PooledByteBufAllocator
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Return the chunk size for an arena.Return aList
of all directPoolArenaMetric
s that are provided by this pool.Return aList
of all heapPoolArenaMetric
s that are provided by this pool.int
Return the size of the normal cache.int
Return the number of direct arenas.int
Return the number of heap arenas.int
Return the number of thread local caches used by thisPooledByteBufAllocator
.int
Return the size of the small cache.int
Deprecated.Tiny caches have been merged into small caches.toString()
long
Returns the number of bytes of direct memory used by aByteBufAllocator
or-1
if unknown.long
Returns the number of bytes of heap memory used by aByteBufAllocator
or-1
if unknown.
-
Field Details
-
allocator
-
-
Constructor Details
-
PooledByteBufAllocatorMetric
PooledByteBufAllocatorMetric(PooledByteBufAllocator allocator)
-
-
Method Details
-
numHeapArenas
public int numHeapArenas()Return the number of heap arenas. -
numDirectArenas
public int numDirectArenas()Return the number of direct arenas. -
heapArenas
Return aList
of all heapPoolArenaMetric
s that are provided by this pool. -
directArenas
Return aList
of all directPoolArenaMetric
s 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:ByteBufAllocatorMetric
Returns the number of bytes of heap memory used by aByteBufAllocator
or-1
if unknown.- Specified by:
usedHeapMemory
in interfaceByteBufAllocatorMetric
-
usedDirectMemory
public long usedDirectMemory()Description copied from interface:ByteBufAllocatorMetric
Returns the number of bytes of direct memory used by aByteBufAllocator
or-1
if unknown.- Specified by:
usedDirectMemory
in interfaceByteBufAllocatorMetric
-
toString
-