soot
Class Timer
java.lang.Object
|
+--soot.Timer
- public class Timer
- extends java.lang.Object
Utility class providing a timer. Used for profiling various
phases of Sootification.
Constructor Summary |
Timer()
Creates a new timer. |
Timer(java.lang.String name)
Creates a new timer with the given name. |
Method Summary |
void |
end()
Stops the current timer. |
long |
getTime()
Returns the sum of the intervals start()-end() of the current timer. |
static void |
setSubtractingGC(boolean value)
Enables or disables the GC timer. |
void |
start()
Starts the given timer. |
java.lang.String |
toString()
Returns the name of the current timer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
forcedGarbageCollectionTimer
public static Timer forcedGarbageCollectionTimer
- Timer for garbage collection.
Timer
public Timer(java.lang.String name)
- Creates a new timer with the given name.
Timer
public Timer()
- Creates a new timer.
setSubtractingGC
public static void setSubtractingGC(boolean value)
- Enables or disables the GC timer.
start
public void start()
- Starts the given timer.
toString
public java.lang.String toString()
- Returns the name of the current timer.
- Overrides:
toString
in class java.lang.Object
end
public void end()
- Stops the current timer.
getTime
public long getTime()
- Returns the sum of the intervals start()-end() of the current timer.