Benchmark

open class Benchmark @JvmOverloads constructor(c: Class<*>, val message: String, debug: Boolean = false, holder: StatisticsHolder? = null) : MeasurementHolder

Measures the time between creating the object to calling its stop() method.

Constructors

Link copied to clipboard
constructor(c: Class<*>, message: String, debug: Boolean = false, holder: StatisticsHolder? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a list of strings which summarize the insights gained by the benchmark. The first item of the list is the key, the second one is the value.

Link copied to clipboard
Link copied to clipboard

Stores the values measured by the benchmark

Link copied to clipboard

A string indicating what this benchmark should measure.

Functions

Link copied to clipboard
open override fun addMeasurement(measurementKey: String?, measurementValue: String?): Any?

Stops the time and computes the difference between

Link copied to clipboard
Link copied to clipboard
fun stop()

Stops this benchmark and adds its measurement to the its StatisticsHolder.