record
fun record(sample: Double, index: Int = Interpreter.currentIndexOrZero())
Content copied to clipboard
Record a sample in my PerInterpreterStatistic having the specified contention-avoidance index.
Parameters
sample
The sample to add.
index
The index specifying which PerInterpreterStatistic to add the sample to.
Record a sample in my PerInterpreterStatistic having the specified contention-avoidance index.
Parameters
sample
The Long sample to add.
index
The index specifying which PerInterpreterStatistic to add the sample to.
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.