1 | static S renderSleepingThreadsWithStackTraces() {
|
2 | Map<Thread, StackTraceElement[]> threadMap = Thread.getAllStackTraces(); |
3 | S threadDescription = "sleeping thread"; |
4 | new StringBuilder buf; |
5 | int n = 0; |
6 | for (Thread t : threadMap.keySet()) {
|
7 | continue if isThreadRunnable_x(t, threadMap.get(t)); |
8 | ++n; |
9 | printTo(buf, t); |
10 | for (StackTraceElement e : threadMap.get(t)) {
|
11 | printTo(buf, " " + e); |
12 | } |
13 | printTo(buf); |
14 | } |
15 | printTo(buf, n(n, threadDescription) + "."); |
16 | ret asciiHeading2(n(n, threadDescription) + " (+" + (l(threadMap)-n) + ")") + "\n" + buf; |
17 | } |
Began life as a copy of #1010502
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1016694 |
| Snippet name: | renderSleepingThreadsWithStackTraces |
| Eternal ID of this version: | #1016694/3 |
| Text MD5: | 75098a7a0524c59e96ea79370639bc52 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-06-28 12:49:04 |
| Source code size: | 599 bytes / 17 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 729 / 729 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |