org.apache.lucene.benchmark.byTask.stats

Class TaskStats

Implemented Interfaces:
Cloneable

public class TaskStats
extends Object
implements Cloneable

Statistics for a task run.
The same task can run more than once, but, if that task records statistics, each run would create its own TaskStats.

Method Summary

void
add(TaskStats stat2)
Add data from another stat, for aggregation
protected Object
clone()
int
getCount()
long
getElapsed()
long
getMaxTotMem()
long
getMaxUsedMem()
int
getNumParallelTasks()
int
getNumRuns()
PerfTask
getTask()
int
getTaskRunNum()
String
toString()

Method Details

add

public void add(TaskStats stat2)
Add data from another stat, for aggregation
Parameters:
stat2 - the added stat data.

clone

protected Object clone()
            throws CloneNotSupportedException

getCount

public int getCount()
Returns:
Returns the count.

getElapsed

public long getElapsed()
Returns:
elapsed time.

getMaxTotMem

public long getMaxTotMem()
Returns:
Returns the maxTotMem.

getMaxUsedMem

public long getMaxUsedMem()
Returns:
Returns the maxUsedMem.

getNumParallelTasks

public int getNumParallelTasks()
Returns:
Returns the numParallelTasks.

getNumRuns

public int getNumRuns()
Returns:
Returns the numRuns.

getTask

public PerfTask getTask()
Returns:
Returns the task.

getTaskRunNum

public int getTaskRunNum()
Returns:
the taskRunNum.

toString

public String toString()

Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.