public static void premain(String args,Instrumentation inst) throws Exception {
  logger.info("Executing premain of JavaAgent");
  checkTransformerState();
  inst.addTransformer(transformer,true);
  instrumentation=inst;
}

public static void premain ( String args , Instrumentation inst ) throws Exception { logger . info ( "Executing premain of JavaAgent" ) ; checkTransformerState ( ) ; inst . addTransformer ( transformer , true ) ; instrumentation = inst ; }
this is called by jvm when agent starts
