Uses 6315K of libraries. Click here for Pure Java version (6839L/36K).
1 | !7 |
2 | |
3 | cmodule ProcessResidentSize > DynBigNumber {
|
4 | start {
|
5 | setDescription("OS SIZE IN MEMORY");
|
6 | doEveryAndNow(10000, r actualUpdate); |
7 | } |
8 | |
9 | void actualUpdate {
|
10 | //time "PRS" { // takes ~10 ms
|
11 | setValue(toM(oshi_currentProcessResidentSize()) + " MB"); |
12 | setModuleName("OS Size In Memory: " + value);
|
13 | //} |
14 | } |
15 | |
16 | visualize {
|
17 | ret setToolTipText("Process ID: " + getProcessID(), componentPopupMenuItem(super.visualize(),
|
18 | "Garbage Collect", r { dm_gc(); actualUpdate(); }));
|
19 | } |
20 | } |
Began life as a copy of #1015898
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: | #1015915 |
| Snippet name: | OS Size In Memory [Dyn Module] |
| Eternal ID of this version: | #1015915/22 |
| Text MD5: | 9a6dc40d5d9f806c5e6a74b3b9bc5c9a |
| Transpilation MD5: | 7dfed01caa277a9fdf833ea7eafee31f |
| Author: | stefan |
| Category: | javax / modules |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-09-16 22:13:10 |
| Source code size: | 532 bytes / 20 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1084 / 91501 |
| Version history: | 21 change(s) |
| Referenced in: | [show references] |