MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / normalCpuLoad

Method normalCpuLoad

test/test/jfr/CpuLoad.java:26–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 }
25
26 private static void normalCpuLoad() {
27 long startTime = System.currentTimeMillis();
28
29 while (System.currentTimeMillis() - startTime < 4000) {
30 cpuLoad();
31 sleep(20);
32 }
33 }
34
35 private static void cpuSpike() {
36 long startTime = System.currentTimeMillis();

Callers

nothing calls this directly

Calls 3

cpuLoadMethod · 0.95
sleepMethod · 0.95
currentTimeMillisMethod · 0.80

Tested by

no test coverage detected