Download Jar. Uses 3874K of libraries. Click here for Pure Java version (5865L/41K).
1 | !7 |
2 | |
3 | lib 1400078 // heap analyzer |
4 | |
5 | import org.netbeans.lib.profiler.heap.*; |
6 | import java.lang.reflect.Field; |
7 | |
8 | static Heap heap; |
9 | |
10 | p-experiment { |
11 | File f = stefansOS_heapDumpFile(); |
12 | print("Loading heap dump (" + toM(fileSize(f)) + " M)..."); |
13 | heap = HeapFactory.createHeap(f); |
14 | print("Got heap."); |
15 | L<JavaClass> classes = heap.getAllClasses(); |
16 | print("Got " + n2(classes, "class", "classes")); |
17 | pnl(sortedIC(mapMethod(classes, 'getName))); |
18 | } |
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: | #1016517 |
Snippet name: | List All Classes In Stefan's OS Heap Dump [OK] |
Eternal ID of this version: | #1016517/9 |
Text MD5: | 4db3ffb2046738d4208dfcbe6fd2eabf |
Transpilation MD5: | ed89e091e87294a6e1d1bfb88c516e8d |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-21 14:47:15 |
Source code size: | 462 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 631 / 1276 |
Version history: | 8 change(s) |
Referenced in: | [show references] |