1 | // in bytes as it should be |
2 | static long getProcessSize() { |
3 | if (isWindows()) fail("Windows!"); |
4 | S bla = backtick("ps up " + getProcessID()); |
5 | S line = toLines(bla).get(1); |
6 | L<S> vals = toList(line.split(" +")); |
7 | //printStructure(vals); |
8 | int processSize = parseInt(vals.get(5)); // hope for the best... |
9 | ret processSize*1024; |
10 | } |
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: | #1002495 |
Snippet name: | getProcessSize (Linux/possibly Android/possibly Mac OS) |
Eternal ID of this version: | #1002495/2 |
Text MD5: | e37cd38c0a0052f666e9dd5ff3ae3d02 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-04 15:25:58 |
Source code size: | 342 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 706 / 728 |
Version history: | 1 change(s) |
Referenced in: | [show references] |