public static String dumpThreads ( ) { final StringWriter sout = new StringWriter ( ) ; // Capture listing in a // string final PrintWriter out = new PrintWriter ( sout ) ; Util . listAllThreads ( out ) ; out . flush ( ) ; return sout . toString ( ) ; }
Finds information about the threads and dumps them into a String .