Home / Function/ testUsedDirectMemory() — netty Function Reference

testUsedDirectMemory() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  64ff1dc7_f2b1_46b9_58e9_cc82cd89711a["testUsedDirectMemory()"]
  f8855572_2abf_1bf6_a32b_5cf6d1cf4947["PooledByteBufAllocatorTest"]
  64ff1dc7_f2b1_46b9_58e9_cc82cd89711a -->|defined in| f8855572_2abf_1bf6_a32b_5cf6d1cf4947
  f260e36d_d79f_3098_5720_34057becb167["expectedUsedMemory()"]
  64ff1dc7_f2b1_46b9_58e9_cc82cd89711a -->|calls| f260e36d_d79f_3098_5720_34057becb167
  f9a43daa_4d60_3f48_fc3c_e267da524d17["expectedUsedMemoryAfterRelease()"]
  64ff1dc7_f2b1_46b9_58e9_cc82cd89711a -->|calls| f9a43daa_4d60_3f48_fc3c_e267da524d17
  7192df7f_2c82_ba35_6dd4_2023f4e87e60["trimCaches()"]
  64ff1dc7_f2b1_46b9_58e9_cc82cd89711a -->|calls| 7192df7f_2c82_ba35_6dd4_2023f4e87e60
  style 64ff1dc7_f2b1_46b9_58e9_cc82cd89711a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java lines 736–743

    @Override
    @Test
    public void testUsedDirectMemory() {
        for (int power = 0; power < 8; power++) {
            int initialCapacity = 1024 << power;
            testUsedDirectMemory(initialCapacity);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testUsedDirectMemory() do?
testUsedDirectMemory() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java.
Where is testUsedDirectMemory() defined?
testUsedDirectMemory() is defined in buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java at line 736.
What does testUsedDirectMemory() call?
testUsedDirectMemory() calls 3 function(s): expectedUsedMemory, expectedUsedMemoryAfterRelease, trimCaches.

Analyze Your Own Codebase

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

Try Supermodel Free