public void updateDexStatistics(DalvCode nonOptCode, DalvCode code) {
    if (DEBUG) {
      System.err.println(
          "dex insns (old/new) "
              + nonOptCode.getInsns().codeSize()
              + "/"
              + code.getInsns().codeSize()
              + " regs (o/n) "
              + nonOptCode.getInsns().getRegistersSize()
              + "/"
              + code.getInsns().getRegistersSize());
    }

    dexRunningDeltaInsns += (code.getInsns().codeSize() - nonOptCode.getInsns().codeSize());

    dexRunningDeltaRegisters +=
        (code.getInsns().getRegistersSize() - nonOptCode.getInsns().getRegistersSize());

    dexRunningTotalInsns += code.getInsns().codeSize();
  }
Updates the dex statistics.

@param nonOptCode non-optimized code block
@param code optimized code block
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/cf/CodeStatistics.java