org.apache.spark.executor

TaskMetrics

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
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

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

    Definition Classes
    AnyRef → Any
  11. def executorCpuTime: Long

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

  12. def executorDeserializeCpuTime: Long

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

  13. def executorDeserializeTime: Long

    Time taken on the executor to deserialize this task.

  14. def executorRunTime: Long

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

  15. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  18. val inputMetrics: InputMetrics

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

  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. def jvmGCTime: Long

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

  21. def memoryBytesSpilled: Long

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

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

    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. val outputMetrics: OutputMetrics

    Metrics related to writing data externally (e.

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

  26. def peakExecutionMemory: Long

    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.

  27. def resultSerializationTime: Long

    Amount of time spent serializing the task result.

  28. def resultSize: Long

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

  29. val shuffleReadMetrics: ShuffleReadMetrics

    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.

  30. val shuffleWriteMetrics: ShuffleWriteMetrics

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

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

    Definition Classes
    AnyRef
  32. def toString(): String

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

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

  34. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped