Libraryless. Click here for Pure Java version (4011L/27K).
// return true if OpenJ9 is available sbool openJ9_dumpHeap(File file) { virtual OpenJ9DiagnosticsMXBean bean = openJ9_diagnosticsBean(); if (bean == null) false; file.delete(); mkdirsForFile(file); temp tempInfoBoxForever("Dumping heap (OpenJ9)..."); long time = sysNow(); call(bean, 'triggerDumpToFile, "heap", f2s(file)); done2_always(time, "Done. " + fileInfo(file)); true; }
Began life as a copy of #1024217
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024218 |
Snippet name: | openJ9_dumpHeap |
Eternal ID of this version: | #1024218/1 |
Text MD5: | a7f31cbcb9cde5fd4c3d958624c67ebf |
Transpilation MD5: | 50170101e416cca4a17a9aec85bb8fd5 |
Author: | stefan |
Category: | javax / management |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-26 16:03:09 |
Source code size: | 416 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 252 / 335 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |