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

Method jvmFirst

test/test/nonjava/NonjavaTests.java:15–22  ·  view source on GitHub ↗
(TestProcess p)

Source from the content-addressed store, hash-verified

13
14 // jvm is loaded before the profiling session is started
15 @Test(sh = "%testbin/non_java_app 1 %s.collapsed", output = true)
16 public void jvmFirst(TestProcess p) throws Exception {
17 p.waitForExit();
18 assert p.exitCode() == 0;
19
20 Output out = p.readFile("%s");
21 assert out.contains("cpuHeavyTask");
22 }
23
24 // jvm is loaded after the profiling session is started
25 @Test(sh = "%testbin/non_java_app 2 %s.collapsed", output = true)

Callers

nothing calls this directly

Calls 4

containsMethod · 0.95
waitForExitMethod · 0.80
exitCodeMethod · 0.80
readFileMethod · 0.80

Tested by

no test coverage detected