Class CodeStatistics
java.lang.Object
com.android.dx.dex.cf.CodeStatistics
Static methods and variables for collecting statistics on generated
code.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintrunning sum of the number of dex-form insns (actually code units) added/removed in SSA form by the optimizer.intrunning sum of the number of dex-form registers added/removed in SSA form by the optimizer.intrunning sum of the total number of dex insns (actually code units) processedintrunning sum of the number of insns added/removed in SSA form by the optimizerintrunning sum of the number of registers added/removed in SSA form by the optimizerintrunning sum of original class bytecode bytesintrunning sum of the total number of Rop insns processed -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPrints out the collected statistics.voidupdateDexStatistics(DalvCode nonOptCode, DalvCode code) Updates the dex statistics.voidupdateOriginalByteCount(int count) Updates the number of original bytecode bytes processed.voidupdateRopStatistics(RopMethod nonOptRmeth, RopMethod rmeth) Updates the ROP statistics.
-
Field Details
-
runningDeltaRegisters
public int runningDeltaRegistersrunning sum of the number of registers added/removed in SSA form by the optimizer -
runningDeltaInsns
public int runningDeltaInsnsrunning sum of the number of insns added/removed in SSA form by the optimizer -
runningTotalInsns
public int runningTotalInsnsrunning sum of the total number of Rop insns processed -
dexRunningDeltaRegisters
public int dexRunningDeltaRegistersrunning sum of the number of dex-form registers added/removed in SSA form by the optimizer. Only valid if args.statistics is true. -
dexRunningDeltaInsns
public int dexRunningDeltaInsnsrunning sum of the number of dex-form insns (actually code units) added/removed in SSA form by the optimizer. Only valid if args.statistics is true. -
dexRunningTotalInsns
public int dexRunningTotalInsnsrunning sum of the total number of dex insns (actually code units) processed -
runningOriginalBytes
public int runningOriginalBytesrunning sum of original class bytecode bytes
-
-
Constructor Details
-
CodeStatistics
public CodeStatistics()
-
-
Method Details
-
updateOriginalByteCount
public void updateOriginalByteCount(int count) Updates the number of original bytecode bytes processed.- Parameters:
count->= 0;the number of bytes to add
-
updateDexStatistics
-
updateRopStatistics
-
dumpStatistics
Prints out the collected statistics.- Parameters:
out-non-null;where to output to
-