/** * @return Returns a new {@link ThreadSnapshot} containing the currently active threads. JVM system threads are * filtered and not part of the thread snapshot. * @see #snapshot(boolean) */ public static ThreadSnapshot snapshot() { return snapshot(true); }
/** * @param filterJVMThreads * If <code>true</code> the JVM system threads are not part of the created snapshot. If <code>false</code> * also JVM system threads will be recorded by the thread snapshot. * @return Returns a new {@link ThreadSnapshot} containing the currently active threads. */ public static ThreadSnapshot snapshot(boolean filterJVMThreads) { return snapshot(filterJVMThreads, null); }
threadSnapshot = ThreadSnapshot.snapshot();