Home / Function/ fillPolluteData() — netty Function Reference

fillPolluteData() — netty Function Reference

Architecture documentation for the fillPolluteData() function in HttpStatusValueOfBenchmark.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  c85c8d24_ffc1_460c_e549_6182159e3213["fillPolluteData()"]
  88c244e7_bc43_f51b_2540_6620aba96c77["HttpStatusValueOfBenchmark"]
  c85c8d24_ffc1_460c_e549_6182159e3213 -->|defined in| 88c244e7_bc43_f51b_2540_6620aba96c77
  233b5109_0cac_eb9c_b2cd_7b4c9af3e77f["polluteBranchIfEnabled()"]
  233b5109_0cac_eb9c_b2cd_7b4c9af3e77f -->|calls| c85c8d24_ffc1_460c_e549_6182159e3213
  96924b5f_4e2b_21cb_70eb_7073f5a1d0c0["printCodePercentage()"]
  c85c8d24_ffc1_460c_e549_6182159e3213 -->|calls| 96924b5f_4e2b_21cb_70eb_7073f5a1d0c0
  style c85c8d24_ffc1_460c_e549_6182159e3213 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/handler/codec/http/HttpStatusValueOfBenchmark.java lines 176–216

    private static void fillPolluteData(int[] polluteData) {
        double c1x = 0, c2x = 0, c3x = 0, c4x = 0, c5x = 0, c6x = 0;
        for (int i = 0; i < polluteData.length;) {
            // [0, 96)
            int code = random.nextInt(0, 96);
            // (100/6) %
            if (code < 16) {
                polluteData[i++] = random.nextInt(100, 200);
                ++c1x;
                continue;
            }
            // (100/6) %
            if (code < 32) {
                polluteData[i++] = random.nextInt(200, 300);
                ++c2x;
                continue;
            }
            // (100/6) %
            if (code < 48) {
                polluteData[i++] = random.nextInt(300, 400);
                ++c3x;
                continue;
            }
            // (100/6) %
            if (code < 64) {
                polluteData[i++] = random.nextInt(400, 500);
                ++c4x;
                continue;
            }
            // (100/6) %
            if (code < 80) {
                polluteData[i++] = random.nextInt(500, 600);
                ++c5x;
                continue;
            }
            // (100/6) %
            polluteData[i++] = random.nextInt(-50, 50);
            ++c6x;
        }
//        printCodePercentage("fillPolluteData", polluteData.length, c1x, c2x, c3x, c4x, c5x, c6x);
    }

Domain

Subdomains

Frequently Asked Questions

What does fillPolluteData() do?
fillPolluteData() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/handler/codec/http/HttpStatusValueOfBenchmark.java.
Where is fillPolluteData() defined?
fillPolluteData() is defined in microbench/src/main/java/io/netty/handler/codec/http/HttpStatusValueOfBenchmark.java at line 176.
What does fillPolluteData() call?
fillPolluteData() calls 1 function(s): printCodePercentage.
What calls fillPolluteData()?
fillPolluteData() is called by 1 function(s): polluteBranchIfEnabled.

Analyze Your Own Codebase

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

Try Supermodel Free