org.apache.lucene.benchmark.stats

Class TestRunData


public class TestRunData
extends Object

This class holds series of TimeData related to a single test run. TimeData values may contribute to different measurements, so this class provides also some useful methods to separate them.
Author:
Andrzej Bialecki <ab@getopt.org>

Constructor Summary

TestRunData()
TestRunData(String id)

Method Summary

void
addData(TimeData td)
Add a data point.
void
endRun()
Mark the ending time of this test run.
LinkedHashMap
getData()
long
getEnd()
String
getId()
Collection
getLabels()
Get a list of all available types of data points.
MemUsage
getMemUsage(String label)
Get memory usage stats.
long
getStart()
Vector
getTotals()
Get total values from all data points of all types.
TimeData
getTotals(String label)
Get total values from all data points of a given type.
void
setId(String id)
void
startRun()
Mark the starting time of this test run.
String
toString()
Return a string representation.

Constructor Details

TestRunData

public TestRunData()

TestRunData

public TestRunData(String id)

Method Details

addData

public void addData(TimeData td)
Add a data point.

endRun

public void endRun()
Mark the ending time of this test run.

getData

public LinkedHashMap getData()

getEnd

public long getEnd()

getId

public String getId()

getLabels

public Collection getLabels()
Get a list of all available types of data points.

getMemUsage

public MemUsage getMemUsage(String label)
Get memory usage stats. for a given data type.

getStart

public long getStart()

getTotals

public Vector getTotals()
Get total values from all data points of all types.
Returns:
a list of TimeData values for all types.

getTotals

public TimeData getTotals(String label)
Get total values from all data points of a given type.

setId

public void setId(String id)

startRun

public void startRun()
Mark the starting time of this test run.

toString

public String toString()
Return a string representation.

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