Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1009627 // List processes by size using OSHI [OK]

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Uses 7696K of libraries. Click here for Pure Java version (6371L/45K/167K).

!7

p-exp {
  L<OSProcess> l = oshi_listProcesses();
  print("Have " + n(l, "process") + ":\n");
  pnl(map(sortByMethod('getResidentSetSize, l), func(OSProcess p) { p.getProcessID()
    + " [" + str_toM(p.getResidentSetSize()) + "] - "
    + p.getCommandLine() }));
}

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: 390 / 569
Version history: 22 change(s)
Referenced in: [show references]