Uses 7696K of libraries. Click here for Pure Java version (6371L/45K/167K).
1 | !7 |
2 | |
3 | p-exp { |
4 | L<OSProcess> l = oshi_listProcesses(); |
5 | print("Have " + n(l, "process") + ":\n"); |
6 | pnl(map(sortByMethod('getResidentSetSize, l), func(OSProcess p) { p.getProcessID() |
7 | + " [" + str_toM(p.getResidentSetSize()) + "] - " |
8 | + p.getCommandLine() })); |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, wtqryiryparv
No comments. add comment
Snippet ID: | #1009627 |
Snippet name: | List processes by size using OSHI [OK] |
Eternal ID of this version: | #1009627/23 |
Text MD5: | 875c9642724c092d92b2c7d6abb4e722 |
Transpilation MD5: | 71d0af7f44654f46c5dfd2f307bab39a |
Author: | stefan |
Category: | javax / os |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-09 19:37:30 |
Source code size: | 275 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 468 / 670 |
Version history: | 22 change(s) |
Referenced in: | [show references] |