|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Metric
Interface representing a metric to be tracked for performance reasons
Method Summary | |
---|---|
void |
addSingleExecution(long ms)
adds a single component execution to the count and total time of executions |
long |
getAverageExecutionTime()
Returns the dumb average (totalExecutionTime/numExecutions) execution time for this query type. |
long |
getMaxTime()
get the maximum time spent on a single query |
long |
getTotalCount()
get the total number of times this type of query executed |
long |
getTotalTime()
get the total time spent for all queries of this type |
org.json.JSONObject |
toJSONObject()
turns the metric information into a JSON object; useful for serialization |
Method Detail |
---|
long getAverageExecutionTime()
long getTotalCount()
long getTotalTime()
long getMaxTime()
void addSingleExecution(long ms)
ms
- the amount of time to addorg.json.JSONObject toJSONObject() throws org.json.JSONException
org.json.JSONException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |