org.apache.spark.executor

TaskMetrics

Related Doc: package executor

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: Any): Boolean

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

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def decDiskBytesSpilled(value: Long): Unit

  7. def diskBytesSpilled: Long

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

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

    Definition Classes
    AnyRef → Any
  10. def executorDeserializeTime: Long

  11. def executorRunTime: Long

  12. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  15. def hostname: String

  16. def incDiskBytesSpilled(value: Long): Unit

  17. def inputMetrics: Option[InputMetrics]

  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. def jvmGCTime: Long

  20. def memoryBytesSpilled: Long

  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 outputMetrics: Option[OutputMetrics]

    If this task writes data externally (e.g.

    If this task writes data externally (e.g. to a distributed filesystem), metrics on how much data was written are stored here.

  25. def resultSerializationTime: Long

  26. def resultSize: Long

  27. def shuffleReadMetrics: Option[ShuffleReadMetrics]

  28. var shuffleWriteMetrics: Option[ShuffleWriteMetrics]

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

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

    Definition Classes
    AnyRef
  30. def toString(): String

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

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

  32. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped