Package org.openjdk.jol.vm
Class InstrumentationSupport
- java.lang.Object
-
- org.openjdk.jol.vm.InstrumentationSupport
-
class InstrumentationSupport extends java.lang.Object
Instrumentation API support.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InstrumentationSupport.Installer
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.instrument.Instrumentation
INSTRUMENTATION
private static boolean
TRY_DYNAMIC_ATTACH
private static boolean
TRY_INSTALL_ATTACH
-
Constructor Summary
Constructors Constructor Description InstrumentationSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static java.lang.instrument.Instrumentation
instance()
static void
premain(java.lang.String agentArgs, java.lang.instrument.Instrumentation inst)
private static void
saveAgentJar(java.io.File agentFile)
private static void
tryAlreadyAttached()
private static void
tryDynamicAttach()
-
-
-
Method Detail
-
premain
public static void premain(java.lang.String agentArgs, java.lang.instrument.Instrumentation inst)
-
instance
static java.lang.instrument.Instrumentation instance()
-
tryAlreadyAttached
private static void tryAlreadyAttached()
-
tryDynamicAttach
private static void tryDynamicAttach() throws java.lang.Exception
- Throws:
java.lang.Exception
-
saveAgentJar
private static void saveAgentJar(java.io.File agentFile) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-