org.bdgenomics.utils.instrumentation
Allows metrics to be created for an application. Currently only timers are supported, but other types of metrics may be supported in the future.
Classes should extend this class to provide collections of metrics for an application. For example, typical usage might be:
object Timers extends Metrics { val Operation1 = timer("Operation 1") val Operation2 = timer("Operation 2") }
This creates two timers: one for Operation 1, and one for Operation 2.
To switch-on recording of metrics for a specific thread, the companion Metrics object must be used.
Creates a timer with the specified name.
Allows metrics to be created for an application. Currently only timers are supported, but other types of metrics may be supported in the future.
Classes should extend this class to provide collections of metrics for an application. For example, typical usage might be:
This creates two timers: one for Operation 1, and one for Operation 2.
To switch-on recording of metrics for a specific thread, the companion Metrics object must be used.