您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }