static S renderAllThreadsWithStackTraces() { ret renderAllThreadsWithStackTraces(Thread.getAllStackTraces()); } static S renderAllThreadsWithStackTraces(Map<Thread, StackTraceElement[]> threadMap) { ret renderAllThreadsWithStackTraces(threadMap, "thread"); } static S renderAllThreadsWithStackTraces(Map<Thread, StackTraceElement[]> threadMap, S threadDescription) { new StringBuilder buf; int n = 0; for (Thread t : threadMap.keySet()) { ThreadGroup g = t.getThreadGroup(); //if (g != null && g.getName().equals("system")) continue; ++n; printTo(buf, t); for (StackTraceElement e : threadMap.get(t)) printTo(buf, " " + e); printTo(buf); } printTo(buf, n(n, threadDescription) + "."); ret asciiHeading2(n2(n, threadDescription)) + "\n" + buf; }
Began life as a copy of #1010502
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1016147 |
Snippet name: | renderAllThreadsWithStackTraces |
Eternal ID of this version: | #1016147/4 |
Text MD5: | 84a75374cf85df6f48a385064386d2b4 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-12-18 14:19:22 |
Source code size: | 815 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 511 / 544 |
Version history: | 3 change(s) |
Referenced in: | [show references] |