| | |
| | | |
| | | public static void printThreadInfo(String name) { |
| | | Thread currentThread = Thread.currentThread(); |
| | | // System.out.println("threadId="+currentThread.getId()+",threadName="+currentThread.getName()+",name="+name); |
| | | // System1.out.println("threadId="+currentThread.getId()+",threadName="+currentThread.getName()+",name="+name); |
| | | } |
| | | |
| | | public static void threadCreateObserver() { |
| | |
| | | String frame = stackTraceElement.toString(); |
| | | if (frame.contains(".basic.")) { |
| | | hasBasic = true; |
| | | System.out.println(threadEntry.getKey().getId() + " " + frame); |
| | | System1.out.println(threadEntry.getKey().getId() + " " + frame); |
| | | } |
| | | } |
| | | if (!hasBasic) { |
| | | for (StackTraceElement stackTraceElement : stackTraceElements) { |
| | | frames.add(stackTraceElement.toString()); |
| | | String frame = stackTraceElement.toString(); |
| | | System.out.println(threadEntry.getKey().getId() + " " + frame); |
| | | System1.out.println(threadEntry.getKey().getId() + " " + frame); |
| | | } |
| | | } |
| | | } |