SampleCountMeasurement improvement
asubb opened this issue · 1 comments
asubb commented
Right now to register a new sample type you need to do something like this:
SampleCountMeasurement.registerType(S::class) { 1 }
For most cases it is used along with the serialization. Would be nice to provide measurement implementation as function of the class:
@Serializable
data class S(val v: Long) : Measured {
override fun measure(): Int {
// implementation here
}
}