Skip to content

Commit

Permalink
[VL] Add output row metric for InputIteratorTransformer (apache#3939)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yohahaha committed Dec 6, 2023
1 parent 36eae99 commit 0b74898
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class MetricsApiImpl extends MetricsApi with Logging {
Map(
"cpuCount" -> SQLMetrics.createMetric(sparkContext, "cpu wall time count"),
"wallNanos" -> SQLMetrics.createNanoTimingMetric(sparkContext, "totaltime of input iterator"),
"outputRows" -> SQLMetrics.createMetric(sparkContext, "number of output rows"),
"outputVectors" -> SQLMetrics.createMetric(sparkContext, "number of output vectors")
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ case class InputIteratorMetricsUpdater(metrics: Map[String, SQLMetric]) extends
val operatorMetrics = opMetrics.asInstanceOf[OperatorMetrics]
metrics("cpuCount") += operatorMetrics.cpuCount
metrics("wallNanos") += operatorMetrics.wallNanos
metrics("outputRows") += operatorMetrics.outputRows
metrics("outputVectors") += operatorMetrics.outputVectors
}
}
Expand Down

0 comments on commit 0b74898

Please sign in to comment.