Package com.android.dx.dex.cf
Class CodeStatistics
java.lang.Object
com.android.dx.dex.cf.CodeStatistics
Static methods and variables for collecting statistics on generated
code.
-
Field Summary
Modifier and TypeFieldDescriptionint
running sum of the number of dex-form insns (actually code units) added/removed in SSA form by the optimizer.int
running sum of the number of dex-form registers added/removed in SSA form by the optimizer.int
running sum of the total number of dex insns (actually code units) processedint
running sum of the number of insns added/removed in SSA form by the optimizerint
running sum of the number of registers added/removed in SSA form by the optimizerint
running sum of original class bytecode bytesint
running sum of the total number of Rop insns processed -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Prints out the collected statistics.void
updateDexStatistics
(DalvCode nonOptCode, DalvCode code) Updates the dex statistics.void
updateOriginalByteCount
(int count) Updates the number of original bytecode bytes processed.void
updateRopStatistics
(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
Updates the dex statistics.- Parameters:
nonOptCode
- non-optimized code blockcode
- optimized code block
-
updateRopStatistics
Updates the ROP statistics.- Parameters:
nonOptRmeth
- non-optimized methodrmeth
- optimized method
-
dumpStatistics
Prints out the collected statistics.- Parameters:
out
-non-null;
where to output to
-