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

Method main

test/test/proc/ManyProcessApp.java:13–26  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

11public class ManyProcessApp {
12
13 public static void main(String[] args) throws Exception {
14 List<Process> procs = new ArrayList<>();
15
16 for (int i = 0; i < 5000; i++) {
17 ProcessBuilder pb = new ProcessBuilder("sleep", "10");
18 procs.add(pb.start());
19 }
20
21 for (Process p : procs) {
22 p.waitFor();
23 }
24
25 Thread.sleep(3000);
26 }
27}

Callers

nothing calls this directly

Calls 3

startMethod · 0.65
addMethod · 0.45
sleepMethod · 0.45

Tested by

no test coverage detected