package perf
- Alphabetic
- Public
- All
Type Members
-
class
MeasurementExecutor extends AnyRef
Class to execute measurements.
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.
-
case class
MeasurementResult(measurementName: String, consideredExecutionTimes: Seq[Long], memoryUsage: Long, runtimeWarningThreshold: RuntimeWarningThreshold, runtimeErrorThreshold: RuntimeErrorThreshold, memoryWarningThreshold: MemoryWarningThreshold, memoryErrorThreshold: MemoryErrorThreshold) extends Product with Serializable
Class containing the execution time of each measurement run of a measurement.
Class containing the execution time of each measurement run of a measurement.
- measurementName
The name of the measurement
- consideredExecutionTimes
The runtimes considered for the measurements.
- memoryUsage
The amount of bytes the computed object graph uses or -1 if memory measurement was disabled.
- runtimeWarningThreshold
A threshold when to write a warning on runtime measurements.
- runtimeErrorThreshold
A threshold when to throw an exception on runtime measurements.
- memoryWarningThreshold
A threshold when to write a warning on memory measurements.
- memoryErrorThreshold
A threshold when to throw an exception on memory measurements.
-
final
case class
MemoryErrorThreshold(t: Double) extends AnyVal with Product with Serializable
Threshold when to throw an error exception on memory comparison.
-
final
case class
MemoryWarningThreshold(t: Double) extends AnyVal with Product with Serializable
Threshold when to print a warning on memory comparison.
-
case class
PerfComparison(className: String, measurementName: String, currentMeasurement: MeasurementResult, previousMeasurement: MeasurementResult) extends Product with Serializable
Class that contains information about the current and previous runtime of a single measurement.
Class that contains information about the current and previous runtime of a single measurement. If the measurement is executed the first time, previousRuntime is 0.
- className
The class where the measurement is implemented in.
- measurementName
The name of the measurement.
- currentMeasurement
The current runtime in ns.
- previousMeasurement
The runtime of the previous execution in ns.
-
class
PerfSpecRunner extends AnyRef
Class to run all measurements inside a PerfSpec class
-
final
case class
RuntimeErrorThreshold(t: Double) extends AnyVal with Product with Serializable
Threshold when to throw an error exception on runtime comparison.
-
final
case class
RuntimeWarningThreshold(t: Double) extends AnyVal with Product with Serializable
Threshold when to print a warning on runtime comparison.
Value Members
-
object
Main
Main object for PerfSpec.
-
object
MeasurementExecutor
Define factory methods and constants for MeasurementExecutor.
-
object
MeasurementResult extends Serializable
Companion object for MeasurementResult.
- object MemoryErrorThreshold extends Serializable
- object MemoryWarningThreshold extends Serializable
-
object
PerfSpecRunner
Factory for PerfSpecRunner instances.
- object RuntimeErrorThreshold extends Serializable
- object RuntimeWarningThreshold extends Serializable
- object Utils