Home / Function/ dump() — netty Function Reference

dump() — netty Function Reference

Architecture documentation for the dump() function in TestUtils.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  b193577e_fe85_de46_bec3_7adf34e92b24["dump()"]
  1dee7150_7837_4c34_2e0a_b594ae531484["TestUtils"]
  b193577e_fe85_de46_bec3_7adf34e92b24 -->|defined in| 1dee7150_7837_4c34_2e0a_b594ae531484
  fe85b50f_9460_570e_a10e_a37f696b7aba["dumpHeap()"]
  b193577e_fe85_de46_bec3_7adf34e92b24 -->|calls| fe85b50f_9460_570e_a10e_a37f696b7aba
  7ab9ccb0_64b3_3a1f_4e64_f959334b854c["dumpThreads()"]
  b193577e_fe85_de46_bec3_7adf34e92b24 -->|calls| 7ab9ccb0_64b3_3a1f_4e64_f959334b854c
  style b193577e_fe85_de46_bec3_7adf34e92b24 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

testsuite/src/main/java/io/netty/testsuite/util/TestUtils.java lines 120–141

    public static void dump(String filenamePrefix) throws IOException {

        ObjectUtil.checkNotNull(filenamePrefix, "filenamePrefix");

        final String timestamp = timestamp();
        final File heapDumpFile = new File(filenamePrefix + '.' + timestamp + ".hprof");
        if (heapDumpFile.exists()) {
            if (!heapDumpFile.delete()) {
                throw new IOException("Failed to remove the old heap dump: " + heapDumpFile);
            }
        }

        final File threadDumpFile = new File(filenamePrefix + '.' + timestamp + ".threads");
        if (threadDumpFile.exists()) {
            if (!threadDumpFile.delete()) {
                throw new IOException("Failed to remove the old thread dump: " + threadDumpFile);
            }
        }

        dumpHeap(heapDumpFile);
        dumpThreads(threadDumpFile);
    }

Domain

Subdomains

Frequently Asked Questions

What does dump() do?
dump() is a function in the netty codebase, defined in testsuite/src/main/java/io/netty/testsuite/util/TestUtils.java.
Where is dump() defined?
dump() is defined in testsuite/src/main/java/io/netty/testsuite/util/TestUtils.java at line 120.
What does dump() call?
dump() calls 2 function(s): dumpHeap, dumpThreads.

Analyze Your Own Codebase

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

Try Supermodel Free