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
voidaddData(TimeData td)
Add a data point.
voidendRun()
Mark the ending time of this test run.
LinkedHashMapgetData()
longgetEnd()
StringgetId()
CollectiongetLabels()
Get a list of all available types of data points.
MemUsagegetMemUsage(String label)
Get memory usage stats for a given data type.
longgetStart()
TimeDatagetTotals(String label)
Get total values from all data points of a given type.
VectorgetTotals()
Get total values from all data points of all types.
voidsetId(String id)
voidstartRun()
Mark the starting time of this test run.
StringtoString()
Return a string representation.

Constructor Detail

TestRunData

public TestRunData()

TestRunData

public TestRunData(String id)

Method Detail

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 TimeData getTotals(String label)
Get total values from all data points of a given type.

getTotals

public Vector getTotals()
Get total values from all data points of all types.

Returns: a list of TimeData values for all types.

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.