ynamic Bytecode Hooking
Utilizes modern ByteBuddy Interceptors to hook method executions dynamically during class loading.
JDK vs. JRE Requirement: This feature requires a Java Development Kit (JDK) to run, rather than a standard Java Runtime Environment (JRE), as it relies on compilation and attachment tools.
Java Compatibility: Supports JDK 8 through Java 21+.
Attachment Mechanism: On legacy JDK 8, the agent leverages the tools.jar Attach API (only available in the JDK). On Java 9 and above (including Java 21), it automatically transitions to the modular jdk.attach API.
Interception is highly focused; only the target packages and classes specified in ProfilerAdditionalTargets are manipulated, avoiding global runtime degradation.
Top comments (0)