Home / Function/ dumpThreads() — netty Function Reference

dumpThreads() — netty Function Reference

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

Function java Buffer Search called by 1

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

testsuite/src/main/java/io/netty/testsuite/util/TestUtils.java lines 219–240

    private static void dumpThreads(File file) {
        final String filename = file.toString();
        try {
            logger.info("Dumping threads: {}", filename);
            final StringBuilder buf = new StringBuilder(8192);
            try {
                for (ThreadInfo info : ManagementFactory.getThreadMXBean().dumpAllThreads(true, true)) {
                    buf.append(info);
                }
                buf.append('\n');
            } catch (UnsupportedOperationException ignored) {
                logger.warn("Can't dump threads: ThreadMXBean.dumpAllThreads() unsupported");
                return;
            }

            try (OutputStream out = Files.newOutputStream(file.toPath())) {
                out.write(buf.toString().getBytes(CharsetUtil.UTF_8));
            }
        } catch (Exception e) {
            logger.warn("Failed to dump threads: {}", filename, e);
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free