private void addIncrement(CtClass clas, String mname, ClassInstrumentationInfo cii) throws NotFoundException, CannotCompileException, IOException {
CtMethod oldMethod = clas.getDeclaredMethod(mname);
log.info("\tadding increment for class: " + clas.getName() + " method: " + mname);
// Report increment value for this path
oldMethod.insertBefore("org.eurekaJ.agent.EurekaJStringLogger.addIncrement(\"" + cii.getPath() + "\");\n");
}
private void addDecrement(CtClass clas, String mname, ClassInstrumentationInfo cii) throws NotFoundException, CannotCompileException, IOException {
CtMethod oldMethod = clas.getDeclaredMethod(mname);