testUsedDirectMemoryHuge() — netty Function Reference
Architecture documentation for the testUsedDirectMemoryHuge() function in AbstractByteBufAllocatorTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD da3579b5_707e_51fb_c530_090c3856ec54["testUsedDirectMemoryHuge()"] 7ff0721a_af2d_e20c_7c69_b0b95f85fcac["AbstractByteBufAllocatorTest"] da3579b5_707e_51fb_c530_090c3856ec54 -->|defined in| 7ff0721a_af2d_e20c_7c69_b0b95f85fcac style da3579b5_707e_51fb_c530_090c3856ec54 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/AbstractByteBufAllocatorTest.java lines 149–158
@Test
public void testUsedDirectMemoryHuge() {
T allocator = newAllocator(true);
ByteBufAllocatorMetric metric = ((ByteBufAllocatorMetricProvider) allocator).metric();
assertEquals(0, metric.usedHeapMemory());
int size = 32 * 1024 * 1024;
ByteBuf buffer = allocator.directBuffer(size, size);
assertEquals(size, metric.usedDirectMemory());
buffer.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testUsedDirectMemoryHuge() do?
testUsedDirectMemoryHuge() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/AbstractByteBufAllocatorTest.java.
Where is testUsedDirectMemoryHuge() defined?
testUsedDirectMemoryHuge() is defined in buffer/src/test/java/io/netty/buffer/AbstractByteBufAllocatorTest.java at line 149.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free