Home / Function/ testSmallSubpageMetric() — netty Function Reference

testSmallSubpageMetric() — netty Function Reference

Architecture documentation for the testSmallSubpageMetric() function in PooledByteBufAllocatorTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  c6e1bc80_ad3b_47c7_5649_8f37abd4394c["testSmallSubpageMetric()"]
  f8855572_2abf_1bf6_a32b_5cf6d1cf4947["PooledByteBufAllocatorTest"]
  c6e1bc80_ad3b_47c7_5649_8f37abd4394c -->|defined in| f8855572_2abf_1bf6_a32b_5cf6d1cf4947
  4e681469_9c14_67cb_5890_46b5d4b12dd2["PooledByteBufAllocator()"]
  c6e1bc80_ad3b_47c7_5649_8f37abd4394c -->|calls| 4e681469_9c14_67cb_5890_46b5d4b12dd2
  style c6e1bc80_ad3b_47c7_5649_8f37abd4394c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java lines 223–234

    @Test
    public void testSmallSubpageMetric() {
        PooledByteBufAllocator allocator = new PooledByteBufAllocator(true, 1, 1, 8192, 9, 0, 0, 0);
        ByteBuf buffer = allocator.heapBuffer(500);
        try {
            PoolArenaMetric metric = allocator.metric().heapArenas().get(0);
            PoolSubpageMetric subpageMetric = metric.smallSubpages().get(0);
            assertEquals(1, subpageMetric.maxNumElements() - subpageMetric.numAvailable());
        } finally {
            buffer.release();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testSmallSubpageMetric() do?
testSmallSubpageMetric() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java.
Where is testSmallSubpageMetric() defined?
testSmallSubpageMetric() is defined in buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java at line 223.
What does testSmallSubpageMetric() call?
testSmallSubpageMetric() calls 1 function(s): PooledByteBufAllocator.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free