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

Method highProcessCount

test/test/proc/ProcTests.java:169–176  ·  view source on GitHub ↗
(TestProcess p)

Source from the content-addressed store, hash-verified

167
168// @Test(mainClass = ManyProcessApp.class, os = Os.LINUX)
169 public void highProcessCount(TestProcess p) throws Exception {
170 p.profile("--proc 4 -d 8 -f %f.jfr");
171 try (JfrReader jfr = new JfrReader(p.getFilePath("%f"))) {
172 List<ProcessSample> events = jfr.readAllEvents(ProcessSample.class);
173
174 Assert.isLess(events.size(), 5001);
175 }
176 }
177
178 @Test(mainClass = BasicApp.class, os = Os.MACOS)
179 public void processSamplingNotSupportedOnMacOS(TestProcess p) throws Exception {

Callers

nothing calls this directly

Calls 5

isLessMethod · 0.95
profileMethod · 0.80
readAllEventsMethod · 0.80
getFilePathMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected