You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

InstrumentationAgent.java 454B

123456789101112131415161718
  1. package com.github.dcevm.agent;
  2. import java.lang.instrument.Instrumentation;
  3. /**
  4. * Simple agent to get access to the Instrumentation API.
  5. */
  6. public class InstrumentationAgent {
  7. public static Instrumentation INSTRUMENTATION;
  8. public static void agentmain(String args, Instrumentation instr) {
  9. INSTRUMENTATION = instr;
  10. }
  11. public static void premain(String args, Instrumentation instr) {
  12. INSTRUMENTATION = instr;
  13. }
  14. }