abc.main
Class AbcTimer

java.lang.Object
  extended by abc.main.AbcTimer

public class AbcTimer
extends java.lang.Object

Provide timing for Abc.

Author:
Laurie Hendren

Constructor Summary
AbcTimer()
           
 
Method Summary
static void addToSootResolve(long t)
          keep a total of all time spent in Soot resolving
static void mark(java.lang.String phasename)
          Add a new phase to the history, name is phasename, time is time since last mark.
static void report()
          Print out report of all phases timed so far.
static void reset()
          reset all static vars, for rerunning abc
static void start()
          Initialize the timer
static void storePolyglotPasses(java.util.ArrayList l)
          store the polyglot passes so we can get times out in correct order
static void storePolyglotStats(Stats stats)
          keep a reference to the polyglot stats
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbcTimer

public AbcTimer()
Method Detail

reset

public static void reset()
reset all static vars, for rerunning abc


storePolyglotPasses

public static void storePolyglotPasses(java.util.ArrayList l)
store the polyglot passes so we can get times out in correct order


storePolyglotStats

public static void storePolyglotStats(Stats stats)
keep a reference to the polyglot stats


addToSootResolve

public static void addToSootResolve(long t)
keep a total of all time spent in Soot resolving


start

public static void start()
Initialize the timer


mark

public static void mark(java.lang.String phasename)
Add a new phase to the history, name is phasename, time is time since last mark.


report

public static void report()
Print out report of all phases timed so far. Debug.v().abcTimer must be set to true for report to be printed.