public void updateRopStatistics(RopMethod nonOptRmeth, RopMethod rmeth) {
    int oldCountInsns = nonOptRmeth.getBlocks().getEffectiveInstructionCount();
    int oldCountRegs = nonOptRmeth.getBlocks().getRegCount();

    if (DEBUG) {
      System.err.println(
          "insns (old/new): "
              + oldCountInsns
              + "/"
              + rmeth.getBlocks().getEffectiveInstructionCount()
              + " regs (o/n):"
              + oldCountRegs
              + "/"
              + rmeth.getBlocks().getRegCount());
    }

    int newCountInsns = rmeth.getBlocks().getEffectiveInstructionCount();

    runningDeltaInsns += (newCountInsns - oldCountInsns);

    runningDeltaRegisters += (rmeth.getBlocks().getRegCount() - oldCountRegs);

    runningTotalInsns += newCountInsns;
  }
Updates the ROP statistics.

@param nonOptRmeth non-optimized method
@param rmeth optimized method
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/cf/CodeStatistics.java