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

Method close

test/one/profiler/test/TestProcess.java:273–287  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

271 }
272
273 @Override
274 public void close() {
275 p.destroy();
276
277 try {
278 waitForExit(p, 20);
279 } catch (TimeoutException e) {
280 log.log(Level.WARNING, "Failed to terminate child process", e);
281 } catch (InterruptedException e) {
282 Thread.currentThread().interrupt();
283 } finally {
284 moveLogs();
285 clearTempFiles();
286 }
287 }
288
289 public long pid() {
290 try {

Callers

nothing calls this directly

Calls 5

waitForExitMethod · 0.95
moveLogsMethod · 0.95
clearTempFilesMethod · 0.95
logMethod · 0.80
destroyMethod · 0.45

Tested by

no test coverage detected