sleep.runtime

Class ScriptInstance.ProfilerStatistic

Enclosing Class:
ScriptInstance
Implemented Interfaces:
Comparable

public static class ScriptInstance.ProfilerStatistic
extends Object
implements Comparable

A container for a profile statistic about a sleep function

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

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)

Field Details

calls

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

functionName

public String functionName
the name of the function call

ticks

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

Method Details

compareTo

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

toString

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