Skip to content

ExecutorMetrics

ExecutorMetrics is a collection of executor metrics.

Creating Instance

ExecutorMetrics takes the following to be created:

  • Metrics

ExecutorMetrics is created when:

Current Metric Values

getCurrentMetrics(
  memoryManager: MemoryManager): Array[Long]

getCurrentMetrics gives metric values for every metric getter.

Given that one metric getter (type) can report multiple metrics, the length of the result collection is the number of metrics (and at least the number of metric getters). The order matters and is exactly as metricGetters.

getCurrentMetrics is used when: