1 | static S getMemoryInfo() {
|
2 | long total = Runtime.getRuntime().totalMemory(); |
3 | long avail = Runtime.getRuntime().freeMemory(); |
4 | ret "Heap: " + iceil(toM_double(total-avail)) + "/" + iceil(toM_double(total)) + " MB"; |
5 | } |
Began life as a copy of #1002037
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1002320 |
| Snippet name: | getMemoryInfo |
| Eternal ID of this version: | #1002320/1 |
| Text MD5: | 34ca8df4a3d804685af9f78ea14b5b48 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-12-13 13:42:11 |
| Source code size: | 223 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 924 / 1182 |
| Referenced in: | [show references] |