Class

org.apache.spark.executor

TaskMetrics

Related Doc: package executor

Permalink

class TaskMetrics extends Serializable

:: DeveloperApi :: Metrics tracked during the execution of a task.

This class is wrapper around a collection of internal accumulators that represent metrics associated with a task. The local values of these accumulators are sent from the executor to the driver when the task completes. These values are then merged into the corresponding accumulator previously registered on the driver.

The accumulator updates are also sent to the driver periodically (on executor heartbeat) and when the task failed with an exception. The TaskMetrics object itself should never be sent to the driver.

Annotations
@DeveloperApi()
Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TaskMetrics
  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 def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def diskBytesSpilled: Long

    Permalink

    The number of on-disk bytes spilled by this task.

  7. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. def executorCpuTime: Long

    Permalink

    CPU Time the executor spends actually running the task (including fetching shuffle data) in nanoseconds.

  10. def executorDeserializeCpuTime: Long

    Permalink

    CPU Time taken on the executor to deserialize this task in nanoseconds.

  11. def executorDeserializeTime: Long

    Permalink

    Time taken on the executor to deserialize this task.

  12. def executorRunTime: Long

    Permalink

    Time the executor spends actually running the task (including fetching shuffle data).

  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. val inputMetrics: InputMetrics

    Permalink

    Metrics related to reading data from a org.apache.spark.rdd.HadoopRDD or from persisted data, defined only in tasks with input.

  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def jvmGCTime: Long

    Permalink

    Amount of time the JVM spent in garbage collection while executing this task.

  19. def memoryBytesSpilled: Long

    Permalink

    The number of in-memory bytes spilled by this task.

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

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

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

    Permalink
    Definition Classes
    AnyRef
  23. val outputMetrics: OutputMetrics

    Permalink

    Metrics related to writing data externally (e.g.

    Metrics related to writing data externally (e.g. to a distributed filesystem), defined only in tasks with output.

  24. def peakExecutionMemory: Long

    Permalink

    Peak memory used by internal data structures created during shuffles, aggregations and joins.

    Peak memory used by internal data structures created during shuffles, aggregations and joins. The value of this accumulator should be approximately the sum of the peak sizes across all such data structures created in this task. For SQL jobs, this only tracks all unsafe operators and ExternalSort.

  25. def resultSerializationTime: Long

    Permalink

    Amount of time spent serializing the task result.

  26. def resultSize: Long

    Permalink

    The number of bytes this task transmitted back to the driver as the TaskResult.

  27. val shuffleReadMetrics: ShuffleReadMetrics

    Permalink

    Metrics related to shuffle read aggregated across all shuffle dependencies.

    Metrics related to shuffle read aggregated across all shuffle dependencies. This is defined only if there are shuffle dependencies in this task.

  28. val shuffleWriteMetrics: ShuffleWriteMetrics

    Permalink

    Metrics related to shuffle write, defined only in shuffle map stages.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  31. def updatedBlockStatuses: Seq[(BlockId, BlockStatus)]

    Permalink

    Storage statuses of any blocks that have been updated as a result of this task.

  32. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. 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