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

17
LINES

< > BotCompany Repo | #1024200 // HotSpot Compilation CPU % [Dyn Module]

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

Uses 1113K of libraries. Click here for Pure Java version (9276L/43K).

!7

cm HotSpotCompilationCPUPercentage > DynBigNumber {
  transient O cpuMonitor;
  
  start {
    setDescription("HOTSPOT COMPILATION CPU %");
    setToolTip("Percentage is per core");
    cpuMonitor = runDependentWithParams(#1001405,
      measureThreads := false);
    ownTimer(doEvery(2.0, r actualUpdate));
  }
  
  void actualUpdate {
    setValue(iceil((double) get(cpuMonitor, 'compilationPercentage)) + " %");
  }
}

Author comment

Began life as a copy of #1016652

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024200
Snippet name: HotSpot Compilation CPU % [Dyn Module]
Eternal ID of this version: #1024200/4
Text MD5: e17cefc8537986c2d4ac83377f7f6360
Transpilation MD5: 87c927978e279c57ae34df0f1123e6f4
Author: stefan
Category: javax / modules
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-29 16:38:23
Source code size: 440 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 227 / 8527
Version history: 3 change(s)
Referenced in: [show references]