Statistic
An immutable collection of related statistics.
Parameters
name Supplier
A lambda that supplies the name for this statistic.
report
The report under which this statistic is classified.
Constructors
Link copied to clipboard
Construct a new Statistic with the given fixed name.
Link copied to clipboard
Construct a new Statistic with the given name.
Functions
Link copied to clipboard
Aggregate the information from my array of PerInterpreterStatistics, and return it as a new PerInterpreterStatistic.
Link copied to clipboard
Clear each of my PerInterpreterStatistics.
Link copied to clipboard
fun record(sample: Double, index: Int = Interpreter.currentIndexOrZero())
Content copied to clipboard
Record a sample in my PerInterpreterStatistic having the specified contention-avoidance index.
inline fun <A> record(index: Int = Interpreter.currentIndexOrZero(), body: () -> A): A
Content copied to clipboard
Perform the body, recording the time it took in the receiver. Answer the value produced by the body.
Properties
Link copied to clipboard
The array of PerInterpreterStatistics.