Libraryless. Click here for Pure Java version (3418L/22K).
1 | svoid findDeadlockReasonsInStackTracesFile(File f) { |
2 | LS traces = splitAtEmptyLines(loadTextFile(f)); |
3 | S sub = "java.awt.EventQueue"; |
4 | LS traces2 = containing(traces, sub); |
5 | print(n2(traces2, "thread") + " with AWT activity.\n"); |
6 | |
7 | // put stack trace with most activity within AWT thread first |
8 | // (most likely culprit) |
9 | sortInPlaceByCalculatedFieldDesc(traces2, t -> indexOfLineContaining(t, sub)); |
10 | |
11 | print(joinWithEmptyLines(traces2)); |
12 | } |
13 | |
14 | svoid findDeadlockReasonsInStackTracesFile() { |
15 | File f = latestFileIn(stefansOS_watchDogStackTracesDir()); |
16 | if (f == null) ret with print("No watch dog straces found."); |
17 | print(f); |
18 | findDeadlockReasonsInStackTracesFile(f); |
19 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1029611 |
Snippet name: | findDeadlockReasonsInStackTracesFile |
Eternal ID of this version: | #1029611/4 |
Text MD5: | d778bd4a0e408d719213389731a7cd59 |
Transpilation MD5: | 430c1450b21fe26f60ecd00d66babe67 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-08-27 17:29:33 |
Source code size: | 701 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 187 / 283 |
Version history: | 3 change(s) |
Referenced in: | [show references] |