com.android.dx.dex.cf
Class CodeStatistics

java.lang.Object
  extended by com.android.dx.dex.cf.CodeStatistics

public final class CodeStatistics
extends Object

Static methods and variables for collecting statistics on generated code.


Field Summary
static int dexRunningDeltaInsns
          running sum of the number of dex-form insns (actually code units) added/removed in SSA form by the optimizer.
static int dexRunningDeltaRegisters
          running sum of the number of dex-form registers added/removed in SSA form by the optimizer.
static int dexRunningTotalInsns
          running sum of the total number of dex insns (actually code units) processed
static int runningDeltaInsns
          running sum of the number of insns added/removed in SSA form by the optimizer
static int runningDeltaRegisters
          running sum of the number of registers added/removed in SSA form by the optimizer
static int runningOriginalBytes
          running sum of original class bytecode bytes
static int runningTotalInsns
          running sum of the total number of Rop insns processed
 
Method Summary
static void dumpStatistics(PrintStream out)
          Prints out the collected statistics.
static void updateDexStatistics(DalvCode nonOptCode, DalvCode code)
          Updates the dex statistics.
static void updateOriginalByteCount(int count)
          Updates the number of original bytecode bytes processed.
static void updateRopStatistics(RopMethod nonOptRmeth, RopMethod rmeth)
          Updates the ROP statistics.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

runningDeltaRegisters

public static int runningDeltaRegisters
running sum of the number of registers added/removed in SSA form by the optimizer


runningDeltaInsns

public static int runningDeltaInsns
running sum of the number of insns added/removed in SSA form by the optimizer


runningTotalInsns

public static int runningTotalInsns
running sum of the total number of Rop insns processed


dexRunningDeltaRegisters

public static int dexRunningDeltaRegisters
running 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 static int dexRunningDeltaInsns
running 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 static int dexRunningTotalInsns
running sum of the total number of dex insns (actually code units) processed


runningOriginalBytes

public static int runningOriginalBytes
running sum of original class bytecode bytes

Method Detail

updateOriginalByteCount

public static void updateOriginalByteCount(int count)
Updates the number of original bytecode bytes processed.

Parameters:
count - >= 0; the number of bytes to add

updateDexStatistics

public static void updateDexStatistics(DalvCode nonOptCode,
                                       DalvCode code)
Updates the dex statistics.

Parameters:
nonOptCode - non-optimized code block
code - optimized code block

updateRopStatistics

public static void updateRopStatistics(RopMethod nonOptRmeth,
                                       RopMethod rmeth)
Updates the ROP statistics.

Parameters:
nonOptRmeth - non-optimized method
rmeth - optimized method

dumpStatistics

public static void dumpStatistics(PrintStream out)
Prints out the collected statistics.

Parameters:
out - non-null; where to output to


Copyright © 2015. All rights reserved.