Libraryless. Click here for Pure Java version (5061L/34K).
1 | !7 |
2 | |
3 | DynSingleFunction > HeapDumper { |
4 | S status; |
5 | |
6 | *() { super("Dump Heap"); } |
7 | |
8 | JComponent visualize() { |
9 | ret centerAndSouth(super.visualize(), |
10 | jLiveValueLabel(dm_fieldLiveValue('status))); |
11 | } |
12 | |
13 | void doIt { |
14 | temp dm_tempDisableAllButtons(); |
15 | try { |
16 | File f = theFile(); |
17 | setField(status := "Dumping heap to " + f2s(f)); |
18 | dumpHeap(f); |
19 | setField(status := "Dump made: " + renderFileInfo(f)); |
20 | } catch e { |
21 | setField(status := exceptionToStringShort(e)); |
22 | _handleException(e); |
23 | } |
24 | } |
25 | |
26 | File theFile() { |
27 | ret stefansOS_heapDumpFile(); |
28 | } |
29 | } |
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: | #1016512 |
Snippet name: | Heap Dumper |
Eternal ID of this version: | #1016512/5 |
Text MD5: | b3855bf8edac1cd12e5b73f9109771f3 |
Transpilation MD5: | 672ece195db6f825850bcf680e079f21 |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-21 14:38:42 |
Source code size: | 632 bytes / 29 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 429 / 901 |
Version history: | 4 change(s) |
Referenced in: | [show references] |