Home / Function/ assertArenaMetrics() — netty Function Reference

assertArenaMetrics() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  49777a7f_5361_fc72_8c29_ed9fe1d78139["assertArenaMetrics()"]
  f8855572_2abf_1bf6_a32b_5cf6d1cf4947["PooledByteBufAllocatorTest"]
  49777a7f_5361_fc72_8c29_ed9fe1d78139 -->|defined in| f8855572_2abf_1bf6_a32b_5cf6d1cf4947
  e61b0a85_1dee_f414_a1af_6f6871cab0d5["testArenaMetrics0()"]
  e61b0a85_1dee_f414_a1af_6f6871cab0d5 -->|calls| 49777a7f_5361_fc72_8c29_ed9fe1d78139
  style 49777a7f_5361_fc72_8c29_ed9fe1d78139 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java lines 186–199

    private static void assertArenaMetrics(
            List<PoolArenaMetric> arenaMetrics, int expectedActive, int expectedAlloc, int expectedDealloc) {
        long active = 0;
        long alloc = 0;
        long dealloc = 0;
        for (PoolArenaMetric arena : arenaMetrics) {
            active += arena.numActiveAllocations();
            alloc += arena.numAllocations();
            dealloc += arena.numDeallocations();
        }
        assertEquals(expectedActive, active);
        assertEquals(expectedAlloc, alloc);
        assertEquals(expectedDealloc, dealloc);
    }

Domain

Subdomains

Frequently Asked Questions

What does assertArenaMetrics() do?
assertArenaMetrics() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java.
Where is assertArenaMetrics() defined?
assertArenaMetrics() is defined in buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java at line 186.
What calls assertArenaMetrics()?
assertArenaMetrics() is called by 1 function(s): testArenaMetrics0.

Analyze Your Own Codebase

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

Try Supermodel Free