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

10
LINES

< > BotCompany Repo | #1015912 // Get information about current process through oshi [OK]

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

Download Jar. Uses 8038K of libraries. Click here for Pure Java version (1075L/7K).

!7

p {
  OSProcess p = oshi_currentProcess();
  print("pid: " + p.getProcessID());
  print("thread count: " + p.getThreadCount());
  print("priority: " + p.getPriority());
  print("virtual size: " + toM(p.getVirtualSize()) + " MB");
  print("resident size: " + toM(p.getResidentSetSize()) + " MB");
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1015912
Snippet name: Get information about current process through oshi [OK]
Eternal ID of this version: #1015912/4
Text MD5: d9d32b28c9a0737d331d6a122c282e38
Transpilation MD5: c66981c362f823171d4a2ea8c78a8333
Author: stefan
Category: javax / os
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-30 14:34:10
Source code size: 310 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 403 / 796
Version history: 3 change(s)
Referenced in: [show references]