record

fun record(sample: Double, index: Int = Interpreter.currentIndexOrZero())

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.


fun record(sample: Long, index: Int = Interpreter.currentIndexOrZero())

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

Perform the body, recording the time it took in the receiver. Answer the value produced by the body.