|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.test.internal.performance.results.AbstractResults
org.eclipse.test.internal.performance.results.PerformanceResults
public class PerformanceResults
Root class to handle performance results. Usually performance results are built for a current build vs. a baseline build. This class allow to read all data from releng performance database for given configurations and scenario pattern. Then it provides easy and speedy access to all stored results.
Field Summary | |
---|---|
static int |
DEFAULT_FAILURE_THRESHOLD
|
Fields inherited from class org.eclipse.test.internal.performance.results.AbstractResults |
---|
BOXES, CONFIGS, DEFAULT_DIM, SUPPORTED_DIMS, VERSION, VERSION_REF |
Constructor Summary | |
---|---|
PerformanceResults(java.lang.String name,
java.lang.String baseline,
java.lang.String baselinePrefix,
java.io.PrintStream stream)
|
Method Summary | |
---|---|
java.lang.String[] |
getAllBuildNames()
Returns the list of all builds currently read. |
java.lang.String |
getBaselineName()
Returns the name of the baseline used for extracted results |
java.lang.String |
getBuildDate()
|
java.lang.String[] |
getComponents()
Return the list of components concerned by performance results. |
java.util.List |
getComponentScenarios(java.lang.String componentName)
Get the scenarios of a given component. |
java.util.List |
getComponentSummaryScenarios(java.lang.String componentName,
java.lang.String config)
Get the scenarios which have a summary for a given component. |
java.lang.String[] |
getConfigBoxes(boolean sort)
Return the configuration boxes considered for this performance results sorted or not depending on the given flag. |
java.lang.String[] |
getConfigNames(boolean sort)
Return the configuration names considered for this performance results sorted or not depending on the given flag. |
java.lang.String |
getLastBuildName()
Return the name of the last build name except baselines. |
java.lang.String |
getLastBuildName(int kind)
Return the name of the last build name |
java.lang.String |
getName()
Returns the name of the results object. |
ScenarioResults |
getScenarioResults(java.lang.String scenarioName)
Get the results of a given scenario. |
java.lang.String[] |
readAll(java.lang.String buildName,
java.lang.String[][] configs,
java.lang.String pattern,
java.io.File dataDir,
int threshold,
org.eclipse.core.runtime.IProgressMonitor monitor)
Read all data from performance database for the given configurations and scenario pattern. |
java.lang.String[] |
readLocal(java.io.File dataDir,
org.eclipse.core.runtime.IProgressMonitor monitor)
Read all data from performance database for the given configurations and scenario pattern. |
java.lang.String[] |
updateBuild(java.lang.String buildName,
boolean force,
java.io.File dataDir,
org.eclipse.core.runtime.IProgressMonitor monitor)
Update a given build information with database contents. |
java.lang.String[] |
updateBuilds(java.lang.String[] builds,
boolean force,
java.io.File dataDir,
org.eclipse.core.runtime.IProgressMonitor monitor)
Update a given build information with database contents. |
Methods inherited from class org.eclipse.test.internal.performance.results.AbstractResults |
---|
compareTo, copyFile, equals, getBuildDate, getBuildDate, getChildren, getParent, getResults, hashCode, size, timeChrono, timeEnd, timeString, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_FAILURE_THRESHOLD
Constructor Detail |
---|
public PerformanceResults(java.lang.String name, java.lang.String baseline, java.lang.String baselinePrefix, java.io.PrintStream stream)
Method Detail |
---|
public java.lang.String[] getAllBuildNames()
public java.lang.String getBaselineName()
null
if no specific baseline is used for the extracted results.public java.lang.String getBuildDate()
public java.lang.String[] getComponents()
public java.util.List getComponentScenarios(java.lang.String componentName)
componentName
- The component name. Should not be null
scenario results
public java.util.List getComponentSummaryScenarios(java.lang.String componentName, java.lang.String config)
componentName
- The component nameconfig
- Configuration name
scenario results
which have a summarypublic java.lang.String[] getConfigBoxes(boolean sort)
sort
- Indicates whether the list must be sorted or not.
The order is defined by the configuration names, not by the box names
public java.lang.String[] getConfigNames(boolean sort)
sort
- Indicates whether the list must be sorted or not
public java.lang.String getLastBuildName()
public java.lang.String getLastBuildName(int kind)
kind
- Decide what kind of build is taken into account
0: all kind of build
1: all except baseline builds
2: all except baseline and nightly builds
3: only integration builds
public java.lang.String getName()
AbstractResults
getName
in class AbstractResults
public ScenarioResults getScenarioResults(java.lang.String scenarioName)
scenarioName
- The scenario name
scenario results
public java.lang.String[] readAll(java.lang.String buildName, java.lang.String[][] configs, java.lang.String pattern, java.io.File dataDir, int threshold, org.eclipse.core.runtime.IProgressMonitor monitor)
buildName
- The name of the buildconfigs
- All configurations to extract results. If null
,
then all known configurations (AbstractResults.CONFIGS
) are read.pattern
- The pattern of the concerned scenariosdataDir
- The directory where data will be read/stored locally.
If null
, then database will be read instead and no storage
will be performedthreshold
- The failure percentage threshold over which a build result
value compared to the baseline is considered as failing.monitor
- The progress monitor
public java.lang.String[] readLocal(java.io.File dataDir, org.eclipse.core.runtime.IProgressMonitor monitor)
dataDir
- The directory where local files are locatedmonitor
- The progress monitor
public java.lang.String[] updateBuilds(java.lang.String[] builds, boolean force, java.io.File dataDir, org.eclipse.core.runtime.IProgressMonitor monitor)
builds
- The builds to read new dataforce
- Force the update from the database, even if the build is
already known.dataDir
- The directory where data should be stored locally if necessary.
If null
, then information changes won't be persisted.monitor
- The progress monitor
public java.lang.String[] updateBuild(java.lang.String buildName, boolean force, java.io.File dataDir, org.eclipse.core.runtime.IProgressMonitor monitor)
buildName
- The build name to read new dataforce
- Force the update from the database, even if the build is
already known.dataDir
- The directory where data should be stored locally if necessary.
If null
, then information changes won't be persisted.monitor
- The progress monitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |