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).

1  
!7
2  
3  
p {
4  
  repeat with sleep 1 {
5  
    for (java.util.Timer timer : _registeredTimersOf(getJavaX())) {
6  
      L entries = cast get(timer, 'entries);
7  
      print("Have timer with " + n2(entries, "entry", "entries"));
8  
      for (O entry : entries)
9  
        print("  firstTime: " + get(entry, 'firstTime) + ", period: " + get(entry, 'period) + ", task: " + get(entry, 'task));
10  
    }
11  
    print("Next GC in " + timeToNextRegularGC() + " ms");
12  
    print();
13  
  }
14  
}

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: 545 / 1105
Version history: 7 change(s)
Referenced in: [show references]