sleep.runtime
Class ScriptInstance.ProfilerStatistic

java.lang.Object
  extended by sleep.runtime.ScriptInstance.ProfilerStatistic
All Implemented Interfaces:
Serializable, Comparable
Enclosing class:
ScriptInstance

public static class ScriptInstance.ProfilerStatistic
extends Object
implements Comparable, Serializable

A container for a profile statistic about a sleep function

See Also:
Serialized Form

Field Summary
 long calls
          the total number of times this function has been called
 String functionName
          the name of the function call
 long ticks
          the total number of ticks consumed by this function call
 
Constructor Summary
ScriptInstance.ProfilerStatistic()
           
 
Method Summary
 int compareTo(Object o)
          used to compare this statistic to other statistics for the sake of sorting
 String toString()
          returns a string in the form of (total time used in seconds)s (total calls made) @(line number) (function description)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

functionName

public String functionName
the name of the function call


ticks

public long ticks
the total number of ticks consumed by this function call


calls

public long calls
the total number of times this function has been called

Constructor Detail

ScriptInstance.ProfilerStatistic

public ScriptInstance.ProfilerStatistic()
Method Detail

compareTo

public int compareTo(Object o)
used to compare this statistic to other statistics for the sake of sorting

Specified by:
compareTo in interface Comparable

toString

public String toString()
returns a string in the form of (total time used in seconds)s (total calls made) @(line number) (function description)

Overrides:
toString in class Object