MCPcopy Create free account
hub / github.com/btraceio/btrace / getPID

Method getPID

integration-tests/src/test/java/resources/TestApp.java:67–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65 }
66
67 private static long getPID() {
68 String processName
69 = java.lang.management.ManagementFactory.getRuntimeMXBean().getName();
70 return Long.parseLong(processName.split("@")[0]);
71 }
72
73 /**
74 * The work here should be done repeatedly until the thread gets interrupted

Callers 1

startMethod · 0.95

Calls 3

getRuntimeMXBeanMethod · 0.65
getNameMethod · 0.45
parseLongMethod · 0.45

Tested by

no test coverage detected