21 lines
502 B
Java
21 lines
502 B
Java
package Traces;
|
|
|
|
import java.util.Map;
|
|
|
|
/**
|
|
* Traces
|
|
*/
|
|
public class Traces {
|
|
|
|
public static void main(String[] args) {
|
|
Map<Thread, StackTraceElement[]> dict = Thread.getAllStackTraces();
|
|
|
|
for (Map.Entry<Thread, StackTraceElement[]> entry : dict.entrySet()) {
|
|
System.out.println(entry.getKey().getName());
|
|
|
|
for (StackTraceElement el : entry.getValue()) {
|
|
System.out.println("\t" + el.toString());
|
|
}
|
|
}
|
|
}
|
|
} |