Libraryless. Click here for Pure Java version (2185L/16K/52K).
!752 p { //S cmd = "ps -u -p "; // doesn't work everywhere S cmd = "ps u -p "; // better? S bla = backtick(cmd + getProcessID()); printIndent(bla); S line = toLines(bla).get(1); L<S> vals = toList(line.split(" +")); printStructure(vals); print(); int processSize = parseInt(vals.get(5)); // hope for the best... print("Process size: " + processSize + " KB"); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1002492 |
| Snippet name: | Test getting outer VM size (Linux, gets RSS field, works on all tested Linuxes) |
| Eternal ID of this version: | #1002492/7 |
| Text MD5: | b7d257b31cfbcadf03d7735d908181cc |
| Transpilation MD5: | 0798acd3318229a91aa8bd9f39d7070b |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-09-01 16:29:36 |
| Source code size: | 394 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 830 / 965 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |