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

16
LINES

< > BotCompany Repo | #1016411 // Test various OSHI functions causing possible leak - LEAKS!

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

Download Jar. Uses 11569K of libraries. Click here for Pure Java version (5738L/40K).

!7

p-experiment {
  printJavaVersion();
  long n = 0;
  NotTooOften nto = new(1000);
  while licensed {
    oshi_batteryLevel();
    oshi_systemMemory();
    oshi_hadDiskAccess();
    long value = oshi_currentProcessResidentSize();
    ++n;
    if (nto.canDoAgain_willDoIfTrue())
      print(n + " - " + toM(value) + " MB");
  }
}

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: #1016411
Snippet name: Test various OSHI functions causing possible leak - LEAKS!
Eternal ID of this version: #1016411/8
Text MD5: f13a29a305a2b3e523b2c301a8221265
Transpilation MD5: 48404bee4453a2d360bde0992967ad30
Author: stefan
Category: javax / stefan's os
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-17 14:45:56
Source code size: 346 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 278 / 803
Version history: 7 change(s)
Referenced in: [show references]