Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

29
LINES

< > BotCompany Repo | #1016512 // Heap Dumper

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Libraryless. Click here for Pure Java version (5061L/34K).

!7

DynSingleFunction > HeapDumper {
  S status;
  
  *() { super("Dump Heap"); }
  
  JComponent visualize() {
    ret centerAndSouth(super.visualize(),
      jLiveValueLabel(dm_fieldLiveValue('status)));
  }
  
  void doIt {
    temp dm_tempDisableAllButtons();
    try {
      File f = theFile();
      setField(status := "Dumping heap to " + f2s(f));
      dumpHeap(f);
      setField(status := "Dump made: " + renderFileInfo(f));
    } catch e {
      setField(status := exceptionToStringShort(e));
      _handleException(e);
    }
  }
  
  File theFile() {
    ret stefansOS_heapDumpFile();
  }
}

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: 428 / 900
Version history: 4 change(s)
Referenced in: [show references]