public class InstrumentingAgent extends Object
| Constructor and Description |
|---|
InstrumentingAgent() |
| Modifier and Type | Method and Description |
|---|---|
static void |
agentmain(String agentArgs,
Instrumentation inst)
Actual method that is going to be called when the JavaAgent is started.
|
static void |
changePackagesToInstrument(String packagePrefixesToCover) |
static boolean |
isActive() |
static void |
premain(String args,
Instrumentation inst)
This is called to init the JavaAgent when starting a new JVM, eg
the config of JavaAgent is passed by command line when the JVM starts.
|
public static void premain(String args, Instrumentation inst)
args - inst - public static void agentmain(String agentArgs, Instrumentation inst)
agentArgs - in this case, the packagePrefixesToCoverinst - public static boolean isActive()
public static void changePackagesToInstrument(String packagePrefixesToCover)
Copyright © 2016–2024. All rights reserved.