Libraryless. Click here for Pure Java version (6354L/44K).
1 | !7 |
2 | |
3 | sclass ProcessResidentSize extends DynBigNumber { |
4 | void start { |
5 | super.start(); |
6 | setDescription("OS SIZE IN MEMORY"); |
7 | ownTimer(doEveryAndNow(30000, r actualUpdate)); |
8 | } |
9 | |
10 | void actualUpdate { |
11 | setValue(toM(getProcessSize()) + " MB"); |
12 | } |
13 | |
14 | JComponent visualize() { |
15 | ret setToolTipText("Process ID: " + getProcessID(), componentPopupMenuItem(super.visualize(), |
16 | "Garbage Collect", r { dm_gc(); actualUpdate(); })); |
17 | } |
18 | } |
Began life as a copy of #1015915
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: | #1016410 |
Snippet name: | OS Size In Memory Without OSHI [Dyn Module] |
Eternal ID of this version: | #1016410/3 |
Text MD5: | 8cf4a30642eed05a6b03a953fbb37442 |
Transpilation MD5: | 54f48b533d1dfada88111efffe7730d4 |
Author: | stefan |
Category: | javax / modules |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-19 14:00:41 |
Source code size: | 468 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 316 / 9264 |
Version history: | 2 change(s) |
Referenced in: | [show references] |