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

20
LINES

< > BotCompany Repo | #1016697 // GC Notification [Dyn Module]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (2008L/11K).

1  
!7
2  
3  
cmodule GCNotification > DynPrintLog {
4  
  start {
5  
    ownResource(onGC(voidfunc(GarbageCollectionNotificationInfo info) enter {
6  
      dm_q(r { printInfo(info) }) }));
7  
  }
8  
  
9  
  void printInfo(GarbageCollectionNotificationInfo info) {
10  
    print();
11  
    GcInfo gcInfo = info.getGcInfo();
12  
    print("GC @ " + localDateWithSeconds());
13  
    print();
14  
    print("  GC cause:  " + info.getGcCause() + " (" + gcInfo.getDuration() + " ms)");
15  
    print("  Collector: " + info.getGcName());
16  
    //print("  Action:    " + info.getGcAction());
17  
    print("  Changes:   " + gcRenderChangesInUsedMemory(gcInfo));
18  
    print();
19  
  }
20  
}

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: #1016697
Snippet name: GC Notification [Dyn Module]
Eternal ID of this version: #1016697/10
Text MD5: 5141f3e7828a9a16c2531fb632569f43
Transpilation MD5: 4fe18bf89d6cc3ddd94ac478a1ec9ce8
Author: stefan
Category: javax / gc / monitoring
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-12 02:06:55
Source code size: 632 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 456 / 709
Version history: 9 change(s)
Referenced in: [show references]