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

!7

cmodule GCNotification > DynPrintLog {
  start {
    ownResource(onGC(voidfunc(GarbageCollectionNotificationInfo info) enter {
      dm_q(r { printInfo(info) }) }));
  }
  
  void printInfo(GarbageCollectionNotificationInfo info) {
    print();
    GcInfo gcInfo = info.getGcInfo();
    print("GC @ " + localDateWithSeconds());
    print();
    print("  GC cause:  " + info.getGcCause() + " (" + gcInfo.getDuration() + " ms)");
    print("  Collector: " + info.getGcName());
    //print("  Action:    " + info.getGcAction());
    print("  Changes:   " + gcRenderChangesInUsedMemory(gcInfo));
    print();
  }
}

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: 457 / 711
Version history: 9 change(s)
Referenced in: