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

Method cpuLoad

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

Source from the content-addressed store, hash-verified

16 }
17
18 private static long cpuLoad() {
19 long count = 0;
20 for (int i = 0; i < 100_000; i++) {
21 count += System.getProperties().hashCode();
22 }
23 return count;
24 }
25
26 private static void normalCpuLoad() {
27 long startTime = System.currentTimeMillis();

Callers 2

normalCpuLoadMethod · 0.95
cpuSpikeMethod · 0.95

Calls 1

hashCodeMethod · 0.45

Tested by

no test coverage detected