Home / Function/ testUsedHeapMemoryHuge() — netty Function Reference

testUsedHeapMemoryHuge() — netty Function Reference

Architecture documentation for the testUsedHeapMemoryHuge() function in AbstractByteBufAllocatorTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9846edfc_16b2_83f5_111a_45bf3126ed18["testUsedHeapMemoryHuge()"]
  7ff0721a_af2d_e20c_7c69_b0b95f85fcac["AbstractByteBufAllocatorTest"]
  9846edfc_16b2_83f5_111a_45bf3126ed18 -->|defined in| 7ff0721a_af2d_e20c_7c69_b0b95f85fcac
  style 9846edfc_16b2_83f5_111a_45bf3126ed18 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/AbstractByteBufAllocatorTest.java lines 179–188

    @Test
    public void testUsedHeapMemoryHuge() {
        T allocator =  newAllocator(true);
        ByteBufAllocatorMetric metric = ((ByteBufAllocatorMetricProvider) allocator).metric();
        assertEquals(0, metric.usedHeapMemory());
        int size = 32 * 1024 * 1024;
        ByteBuf buffer = allocator.heapBuffer(size, size);
        assertEquals(size, metric.usedHeapMemory());
        buffer.release();
    }

Domain

Subdomains

Frequently Asked Questions

What does testUsedHeapMemoryHuge() do?
testUsedHeapMemoryHuge() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/AbstractByteBufAllocatorTest.java.
Where is testUsedHeapMemoryHuge() defined?
testUsedHeapMemoryHuge() is defined in buffer/src/test/java/io/netty/buffer/AbstractByteBufAllocatorTest.java at line 179.

Analyze Your Own Codebase

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

Try Supermodel Free