Libraryless. Click here for Pure Java version (2185L/16K/52K).
1 | !752 |
2 | |
3 | p { |
4 | //S cmd = "ps -u -p "; // doesn't work everywhere |
5 | S cmd = "ps u -p "; // better? |
6 | S bla = backtick(cmd + getProcessID()); |
7 | printIndent(bla); |
8 | S line = toLines(bla).get(1); |
9 | L<S> vals = toList(line.split(" +")); |
10 | printStructure(vals); |
11 | print(); |
12 | int processSize = parseInt(vals.get(5)); // hope for the best... |
13 | print("Process size: " + processSize + " KB"); |
14 | } |
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: | 604 / 693 |
Version history: | 6 change(s) |
Referenced in: | [show references] |