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

14
LINES

< > BotCompany Repo | #1013403 // Print core timers & next scheduled GC

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

Download Jar. Libraryless. Click here for Pure Java version (1595L/10K).

!7

p {
  repeat with sleep 1 {
    for (java.util.Timer timer : _registeredTimersOf(getJavaX())) {
      L entries = cast get(timer, 'entries);
      print("Have timer with " + n2(entries, "entry", "entries"));
      for (O entry : entries)
        print("  firstTime: " + get(entry, 'firstTime) + ", period: " + get(entry, 'period) + ", task: " + get(entry, 'task));
    }
    print("Next GC in " + timeToNextRegularGC() + " ms");
    print();
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1013403
Snippet name: Print core timers & next scheduled GC
Eternal ID of this version: #1013403/8
Text MD5: 9df07015fb2000ffb2c07016ffa3180c
Transpilation MD5: 4a13ead1524b6c7cd3d239b4df86f5c8
Author: stefan
Category: javax / monitoring
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-05 02:16:53
Source code size: 464 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 546 / 1106
Version history: 7 change(s)
Referenced in: #1013404 - nextScheduledGC - returns in now() time