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

Method cpuSpike

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

Source from the content-addressed store, hash-verified

33 }
34
35 private static void cpuSpike() {
36 long startTime = System.currentTimeMillis();
37
38 while (System.currentTimeMillis() - startTime < 500) {
39 cpuLoad();
40 }
41 }
42
43 public static void main(String[] args) throws Exception {
44 Thread thread = new Thread(CpuLoad::normalCpuLoad);

Callers 1

mainMethod · 0.95

Calls 2

cpuLoadMethod · 0.95
currentTimeMillisMethod · 0.80

Tested by

no test coverage detected