org.apache.spark.executor

TaskMetrics

class TaskMetrics extends Serializable

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

This class is used to house metrics both for in-progress and completed tasks. In executors, both the task thread and the heartbeat thread write to the TaskMetrics. The heartbeat thread reads it to send in-progress metrics, and the task thread reads it to send metrics along with the completed task.

So, when adding new fields, take into consideration that the whole object can be serialized for shipping off at any time to consumers of the SparkListener interface.

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

Instance Constructors

  1. new TaskMetrics()

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. var 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. var executorDeserializeTime: Long

    Time taken on the executor to deserialize this task

  12. var executorRunTime: Long

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

  13. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  16. var hostname: String

    Host's name the task runs on

  17. var inputMetrics: Option[InputMetrics]

    If this task reads from a HadoopRDD or from persisted data, metrics on how much data was read are stored here.

  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. var jvmGCTime: Long

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

  20. var memoryBytesSpilled: Long

    The number of in-memory bytes spilled by this task

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

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

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

    Definition Classes
    AnyRef
  24. var resultSerializationTime: Long

    Amount of time spent serializing the task result

  25. var resultSize: Long

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

  26. def shuffleReadMetrics: Option[ShuffleReadMetrics]

  27. var shuffleWriteMetrics: Option[ShuffleWriteMetrics]

    If this task writes to shuffle output, metrics on the written shuffle data will be collected here

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

    Definition Classes
    AnyRef
  29. def toString(): String

    Definition Classes
    AnyRef → Any
  30. var updatedBlocks: Option[Seq[(BlockId, BlockStatus)]]

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

  31. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped