Object/Class

org.bdgenomics.utils.instrumentation

Metrics

Related Docs: class Metrics | package instrumentation

Permalink

object Metrics extends Serializable

Manages recording of metrics in an application. Metrics collection is turned on for a particular thread by calling the initialize method. After initialize is called the Metrics.Recorder field is set, and the application can use that to record metrics. To print metrics, call the print method, and to stop recording metrics for a particular thread, call the stopRecording method.

If an application does not want to record metrics, it can simply avoid calling the initialize method (or can call the stopRecording method if there is a chance that initialize has been called on that thread previously). Attempting to record metrics when the initialize method has not been called will not produce an error, and incurs very little overhead. However, attempting to call the print method to print the metrics will produce an error.

Annotations
@deprecated
Deprecated

to be removed in version 0.3.0

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Metrics
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final val Recorder: DynamicVariable[Option[MetricsRecorder]]

    Permalink

    Dynamic variable (thread-local) which allows metrics to be recorded for the current thread.

    Dynamic variable (thread-local) which allows metrics to be recorded for the current thread. Note that this will be set to None if metrics have not been initialized for the current thread, so callers should deal with this appropriately (normally by avoiding recording any metrics or propagating the recorder to other threads).

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def generateNewSequenceId(): Int

    Permalink

    Generates a new sequence ID for operations that we wish to appear in sequence

  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. def initialize(sparkContext: SparkContext): Unit

    Permalink

    Starts recording metrics for this thread.

    Starts recording metrics for this thread. Any previously-recorded metrics for this thread will be cleared. This method must always be called before recording metrics.

  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def isRecording: Boolean

    Permalink

    Returns true if metrics are being recorded for the current thread, or false otherwise

  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def print(out: PrintWriter, sparkStageTimings: Option[Seq[StageTiming]]): Unit

    Permalink

    Prints the metrics recorded by this instance to the specified PrintWriter, using the specified SparkMetrics to print details of any Spark operations that have occurred.

  20. def stopRecording(): Unit

    Permalink

    Stops recording metrics for the current thread.

    Stops recording metrics for the current thread. This avoids the (slight) overhead of recording metrics if they are not going to be used. Calling the print method after calling this one will result in an IllegalStateException.

  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    Metrics → AnyRef → Any
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped