Home / Function/ testArenaMetrics0() — netty Function Reference

testArenaMetrics0() — netty Function Reference

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

Function java Buffer Search calls 1 called by 4

Entity Profile

Dependency Diagram

graph TD
  e61b0a85_1dee_f414_a1af_6f6871cab0d5["testArenaMetrics0()"]
  f8855572_2abf_1bf6_a32b_5cf6d1cf4947["PooledByteBufAllocatorTest"]
  e61b0a85_1dee_f414_a1af_6f6871cab0d5 -->|defined in| f8855572_2abf_1bf6_a32b_5cf6d1cf4947
  7c1853c3_f413_66e9_4591_0a53aa815f13["testArenaMetricsNoCache()"]
  7c1853c3_f413_66e9_4591_0a53aa815f13 -->|calls| e61b0a85_1dee_f414_a1af_6f6871cab0d5
  f58189da_65a5_01e0_d257_6cd5a9e8accd["testArenaMetricsCache()"]
  f58189da_65a5_01e0_d257_6cd5a9e8accd -->|calls| e61b0a85_1dee_f414_a1af_6f6871cab0d5
  d6e8f960_e95e_9559_6742_6adac6f99e0f["testArenaMetricsNoCacheAlign()"]
  d6e8f960_e95e_9559_6742_6adac6f99e0f -->|calls| e61b0a85_1dee_f414_a1af_6f6871cab0d5
  4ede93d7_0b70_b8fb_92b9_aeb3ca164186["testArenaMetricsCacheAlign()"]
  4ede93d7_0b70_b8fb_92b9_aeb3ca164186 -->|calls| e61b0a85_1dee_f414_a1af_6f6871cab0d5
  49777a7f_5361_fc72_8c29_ed9fe1d78139["assertArenaMetrics()"]
  e61b0a85_1dee_f414_a1af_6f6871cab0d5 -->|calls| 49777a7f_5361_fc72_8c29_ed9fe1d78139
  style e61b0a85_1dee_f414_a1af_6f6871cab0d5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java lines 175–184

    private static void testArenaMetrics0(
            PooledByteBufAllocator allocator, int num, int expectedActive, int expectedAlloc, int expectedDealloc) {
        for (int i = 0; i < num; i++) {
            assertTrue(allocator.directBuffer().release());
            assertTrue(allocator.heapBuffer().release());
        }

        assertArenaMetrics(allocator.metric().directArenas(), expectedActive, expectedAlloc, expectedDealloc);
        assertArenaMetrics(allocator.metric().heapArenas(), expectedActive, expectedAlloc, expectedDealloc);
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free