Class PerformanceReport
java.lang.Object
hudson.plugins.performance.reports.AbstractReport
hudson.plugins.performance.reports.PerformanceReport
- All Implemented Interfaces:
Serializable,Comparable<PerformanceReport>
public class PerformanceReport
extends AbstractReport
implements Serializable, Comparable<PerformanceReport>
Represents a single performance report, which consists of multiple
UriReports for different URLs that was tested.
This object belongs under PerformanceReportMap.
- See Also:
-
Field Summary
FieldsFields inherited from class hudson.plugins.performance.reports.AbstractReport
dataFormat, DEFAULT_PERCENTILES, excludeResponseTime, FIFTY_PERCENT, isCalculatedPercentilesValues, LOGGER, NINETY_FIVE_PERCENT, NINETY_PERCENT, ONE_HUNDRED_PERCENT, percentFormat, percentilesDiffValues, percentilesValues, showTrendGraphs, ZERO_PERCENT -
Constructor Summary
ConstructorsConstructorDescriptionPerformanceReport(String defaultPercentiles) PerformanceReport(String percentiles, String filterRegex) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSample(HttpSample pHttpSample) voidaddSample(TaurusFinalStats sample, boolean isSummaryReport) static StringasStaplerURI(String uri) voidvoidintcompareTo(PerformanceReport jmReport) intbooleandoublelonglonglonglonglonglongdoubleintRun<?, ?> getBuild()longgetDurationAt(double percentage) 0 percent will give the first value from ordered list of durations 100 percent will give the last value from ordered list of durationsgetDynamic(String token) doublelonggetMax()longlonglonggetMin()intlonglonglonglongdoubleinthashCode()booleanifSummarizerParserUsed(String filename) Check if the filename of the file being parsed is being parsed by a summarized parser (JMeterSummarizer).intvoidsetBaselineBuild(int baselineBuild) voidsetBuildAction(PerformanceBuildAction buildAction) voidsetFilterRegex(String filterRegex) voidsetLastBuildReport(PerformanceReport lastBuildReport) voidsetReportFileName(String reportFileName) voidsetSummarizerAvg(long summarizerAvg) voidsetSummarizerErrors(String summarizerErrorPercent) voidsetSummarizerMax(long summarizerMax) voidsetSummarizerMin(long summarizerMin) voidsetSummarizerSize(long summarizerSize) Methods inherited from class hudson.plugins.performance.reports.AbstractReport
checkPercentileAndSet, errorPercentFormated, get90LineFormated, get95LineFormated, getAverageFormated, getMaxFormated, getMeanFormated, getPercentileLabel, getPercentilesDiffValues, getPercentilesValues, isExcludeResponseTime, isIncludeResponseTime, isShowTrendGraphs, parsePercentiles, setExcludeResponseTime, setShowTrendGraphs
-
Field Details
-
INCLUDE_ALL
-
percentiles
-
baselineBuild
protected int baselineBuild
-
-
Constructor Details
-
PerformanceReport
public PerformanceReport() -
PerformanceReport
-
PerformanceReport
-
-
Method Details
-
readResolve
-
asStaplerURI
-
addSample
-
addSample
-
compareTo
- Specified by:
compareToin interfaceComparable<PerformanceReport>
-
equals
-
hashCode
public int hashCode() -
countErrors
public int countErrors()- Specified by:
countErrorsin classAbstractReport
-
errorPercent
public double errorPercent()- Specified by:
errorPercentin classAbstractReport
-
getAverage
public long getAverage()- Specified by:
getAveragein classAbstractReport
-
getAverageSizeInKb
public double getAverageSizeInKb() -
getDurationAt
public long getDurationAt(double percentage) 0 percent will give the first value from ordered list of durations 100 percent will give the last value from ordered list of durations- Parameters:
percentage- must be a value between 0 and 100 (inclusive)- Returns:
- value at the percentage specified.
-
calculatePercentiles
public void calculatePercentiles()- Specified by:
calculatePercentilesin classAbstractReport
-
calculateDiffPercentiles
public void calculateDiffPercentiles()- Specified by:
calculateDiffPercentilesin classAbstractReport
-
get90Line
public long get90Line()- Specified by:
get90Linein classAbstractReport
-
get95Line
public long get95Line()- Specified by:
get95Linein classAbstractReport
-
getMedian
public long getMedian()- Specified by:
getMedianin classAbstractReport
-
getHttpCode
- Specified by:
getHttpCodein classAbstractReport
-
getBuild
-
getDisplayName
-
getDynamic
- Throws:
IOException
-
getMax
public long getMax()- Specified by:
getMaxin classAbstractReport
-
getTotalTrafficInKb
public double getTotalTrafficInKb() -
getMin
public long getMin()- Specified by:
getMinin classAbstractReport
-
getReportFileName
-
getUriListOrdered
-
getUriReportMap
-
setBuildAction
-
setReportFileName
-
samplesCount
public int samplesCount()- Specified by:
samplesCountin classAbstractReport
-
setLastBuildReport
-
getAverageDiff
public long getAverageDiff()- Specified by:
getAverageDiffin classAbstractReport
-
getMedianDiff
public long getMedianDiff()- Specified by:
getMedianDiffin classAbstractReport
-
get90LineDiff
public long get90LineDiff()- Specified by:
get90LineDiffin classAbstractReport
-
get95LineDiff
public long get95LineDiff()- Specified by:
get95LineDiffin classAbstractReport
-
getErrorPercentDiff
public double getErrorPercentDiff()- Specified by:
getErrorPercentDiffin classAbstractReport
-
getLastBuildHttpCodeIfChanged
- Specified by:
getLastBuildHttpCodeIfChangedin classAbstractReport
-
getSamplesCountDiff
public int getSamplesCountDiff()- Specified by:
getSamplesCountDiffin classAbstractReport
-
ifSummarizerParserUsed
Check if the filename of the file being parsed is being parsed by a summarized parser (JMeterSummarizer).- Parameters:
filename- name of the file being parsed- Returns:
- boolean indicating usage of summarized parser
-
setSummarizerSize
public void setSummarizerSize(long summarizerSize) -
getSummarizerSize
public long getSummarizerSize() -
setSummarizerMin
public void setSummarizerMin(long summarizerMin) -
getSummarizerMin
public long getSummarizerMin() -
setSummarizerMax
public void setSummarizerMax(long summarizerMax) -
getSummarizerMax
public long getSummarizerMax() -
setSummarizerAvg
public void setSummarizerAvg(long summarizerAvg) -
getSummarizerAvg
public long getSummarizerAvg() -
setSummarizerErrors
-
getSummarizerErrors
-
getThroughput
-
getBaselineBuild
public int getBaselineBuild() -
setBaselineBuild
public void setBaselineBuild(int baselineBuild) -
getFilterRegex
- Returns:
- the filterRegex
-
setFilterRegex
- Parameters:
filterRegex- the filterRegex to set
-