Package sleep.runtime
Class ScriptInstance.ProfilerStatistic
- java.lang.Object
-
- sleep.runtime.ScriptInstance.ProfilerStatistic
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable
- Enclosing class:
- ScriptInstance
public static class ScriptInstance.ProfilerStatistic extends java.lang.Object implements java.lang.Comparable, java.io.Serializable
A container for a profile statistic about a sleep function- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description long
calls
the total number of times this function has been calledjava.lang.String
functionName
the name of the function calllong
ticks
the total number of ticks consumed by this function call
-
Constructor Summary
Constructors Constructor Description ProfilerStatistic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(java.lang.Object o)
used to compare this statistic to other statistics for the sake of sortingjava.lang.String
toString()
returns a string in the form of (total time used in seconds)s (total calls made) @(line number) (function description)
-
-
-
Method Detail
-
compareTo
public int compareTo(java.lang.Object o)
used to compare this statistic to other statistics for the sake of sorting- Specified by:
compareTo
in interfacejava.lang.Comparable
-
toString
public java.lang.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 classjava.lang.Object
-
-