Home / Function/ usedMemory() — netty Function Reference

usedMemory() — netty Function Reference

Architecture documentation for the usedMemory() function in AllocationPatternSimulator.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  bf2c887c_0e83_62ec_db0a_3fd73c2c9951["usedMemory()"]
  27e61a5f_6c04_1fc0_a0bf_9f0aa035c565["AllocConfig"]
  bf2c887c_0e83_62ec_db0a_3fd73c2c9951 -->|defined in| 27e61a5f_6c04_1fc0_a0bf_9f0aa035c565
  76ec3af2_8878_9d60_39b7_18461aa6fefd["run()"]
  76ec3af2_8878_9d60_39b7_18461aa6fefd -->|calls| bf2c887c_0e83_62ec_db0a_3fd73c2c9951
  style bf2c887c_0e83_62ec_db0a_3fd73c2c9951 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/buffer/AllocationPatternSimulator.java lines 594–599

        long usedMemory() {
            if (allocator instanceof AdaptiveByteBufAllocator) {
                return ((AdaptiveByteBufAllocator) allocator).usedHeapMemory();
            }
            return ((PooledByteBufAllocator) allocator).usedHeapMemory();
        }

Domain

Subdomains

Called By

Frequently Asked Questions

What does usedMemory() do?
usedMemory() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/buffer/AllocationPatternSimulator.java.
Where is usedMemory() defined?
usedMemory() is defined in microbench/src/main/java/io/netty/buffer/AllocationPatternSimulator.java at line 594.
What calls usedMemory()?
usedMemory() is called by 1 function(s): run.

Analyze Your Own Codebase

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

Try Supermodel Free