class MeasurementExecutor extends AnyRef
Class to execute measurements.
Parameters need to be java types because it is called from a class loader that is executed in a scala 2.10 context because of sbt. This code is run in scala 2.11. Since the versions are not bytecode compatible, the parameters must be passed as java objects.
- Alphabetic
- By Inheritance
- MeasurementExecutor
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
MeasurementExecutor(projectCpList: List[File])
- projectCpList
A list of classpaths to look for spec.PerfSpec derived classes.
Type Members
- type MeasurementMap = Map[String, Iterable[MeasurementResult]]
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
cleanMeasurement(perfClass: String): Unit
Remove the measurement for the given class from the file specified in MeasurementExecutor.PerfFile.
Remove the measurement for the given class from the file specified in MeasurementExecutor.PerfFile. All other measurements will be saved.
- perfClass
The class name of the measurement to remove.
- Note
The MeasurementExecutor.PerfFile will be removed if no more measurements are present.
-
def
cleanMeasurements(): Unit
Delete all previous performance measurements.
Delete all previous performance measurements.
- Note
This removes the file specified in MeasurementExecutor.PerfFile from the hard disk.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- var defaultMemoryThresholdError: Double
- var defaultMemoryThresholdWarning: Double
- var defaultRuntimeThresholdError: Double
- var defaultRuntimeThresholdWarning: Double
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- var logger: Logger
-
def
measureAll(): Boolean
Measure all classes found in the classpath provided by the contructor parameter.
Measure all classes found in the classpath provided by the contructor parameter.
- returns
true if the measurement were executed successfully without any errors or warning and the results are saved in the file specified in MeasurementExecutor.PerfFile. false is returned if one or more warnings were issued. In this case, the measurements aren't saved.
-
def
measureOnly(measureClass: String): Boolean
Measure one class.
Measure one class.
- measureClass
The name of the class to be measured.
- returns
true if the measurement were executed successfully without any errors or warning and the results are saved in the file specified in MeasurementExecutor.PerfFile. false is returned if one or more warnings were issued. In this case, the measurements aren't saved.
-
def
memoryExceedsErrorThreshold(r: PerfComparison): Boolean
Checks if the difference between the previous memory usage and the current one exceeds the error threshold.
Checks if the difference between the previous memory usage and the current one exceeds the error threshold.
- r
A runtime comparison object containing the previous and current memory usage.
- returns
true if the difference exceeds the thresholdError, false if the differences is smaller than the threshold.
-
def
memoryExceedsWarningThreshold(r: PerfComparison): Boolean
Checks if the difference between the previous memory usage and the current one exceeds the warning threshold.
Checks if the difference between the previous memory usage and the current one exceeds the warning threshold.
- r
A runtime comparison object containing the previous and current memory usage.
- returns
true if the difference exceeds the thresholdWarning, false if the differences is smaller than the threshold.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
var
runMemoryMeasurements: Boolean
Measure the memory consumption of all measurements to be executed
-
var
runRuntimeMeasurements: Boolean
Measure the runtime of all measurements to be executed
-
def
runtimeExceedsErrorThreshold(r: PerfComparison): Boolean
Checks if the difference between the previous runtime and the current one exceeds the error threshold.
Checks if the difference between the previous runtime and the current one exceeds the error threshold.
- r
A runtime comparison object containing the previous and current runtimes.
- returns
true if the difference exceeds the thresholdError, false if the differences is smaller than the threshold.
-
def
runtimeExceedsWarningThreshold(r: PerfComparison): Boolean
Checks if the difference between the previous runtime and the current one exceeds the warning threshold and is smaller than the error threshold.
Checks if the difference between the previous runtime and the current one exceeds the warning threshold and is smaller than the error threshold.
- r
A runtime comparison object containing the previous and current runtimes.
- returns
true if the difference exceeds the thresholdWarning and is smaller than the errorThreshold, false if the differences is smaller than the threshold or larger than the errorThreshold.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
var
updateMeasurements: Boolean
Update measurements in .perf file if a measurement file already exist
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )