Package com.github.beothorn.agent
Class MethodInstrumentationAgent
java.lang.Object
com.github.beothorn.agent.MethodInstrumentationAgent
This is the entrypoint for the agent.
Here all arguments will be parsed.
The advices will be wired in accordance to the filters.
The snapshot thread will be started.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic Log.LogLevelstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetExecutionMetadataAsJson(String app, String path, String arguments, String allFlagsAsString, String outputDirectory, String filter, Optional<String> maybeStartRecordingTriggerFunction, Optional<String> maybeStopRecordingTriggerFunction) static voidpremain(String argumentParameter, Instrumentation instrumentation) static voidpremainInternal(String argumentParameter, Instrumentation instrumentation) static byte[]readAllBytes(InputStream inputStream)
-
Field Details
-
VERSION
- See Also:
-
AGENT_PACKAGE
- See Also:
-
BYTEBUDDY_PACKAGE
- See Also:
-
currentLevel
-
-
Constructor Details
-
MethodInstrumentationAgent
public MethodInstrumentationAgent()
-
-
Method Details
-
premain
-
premainInternal
-
getExecutionMetadataAsJson
-
readAllBytes
- Throws:
IOException
-