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

Method recursive

test/test/instrument/Recursive.java:14–18  ·  view source on GitHub ↗
(long recursionCount)

Source from the content-addressed store, hash-verified

12 private static final long MAX_RECURSION = 3;
13
14 static void recursive(long recursionCount) throws InterruptedException {
15 if (recursionCount > MAX_RECURSION) return;
16 Thread.sleep((MAX_RECURSION - recursionCount) * 200);
17 recursive(recursionCount+1);
18 }
19
20 public static void main(String[] args) throws InterruptedException {
21 recursive(0);

Callers 1

mainMethod · 0.95

Calls 1

sleepMethod · 0.45

Tested by

no test coverage detected