public class AgentPremain
extends java.lang.Object
Constructor and Description |
---|
AgentPremain() |
Modifier and Type | Method and Description |
---|---|
private static java.util.Properties |
parseArguments(java.lang.String agentArgument,
java.lang.String separator)
Consider the argument string to be a property file (by converting the
splitter character to line feeds), and then reading it like any other
property file.
|
static void |
premain(java.lang.String agentArgument,
java.lang.instrument.Instrumentation instrumentation)
JavaAgent premain entry point as specified in the MANIFEST.MF file.
|
private static void |
printStartStopTimes()
Print the start message to System.err with the time NOW, and register a
shutdown hook which will print the stop message to System.err with the
time then and the number of milliseconds passed since.
|
public static void premain(java.lang.String agentArgument, java.lang.instrument.Instrumentation instrumentation)
agentArgument
- string provided after "=" up to first spaceinstrumentation
- instrumentation environment provided by the JVMprivate static java.util.Properties parseArguments(java.lang.String agentArgument, java.lang.String separator)
agentArgument
- string given by instrumentation frameworkseparator
- String to convert to line feedsprivate static void printStartStopTimes()