Here is where it is defined:
https://github.com/apache/incubator-spark/blob/master/core/src/main/scala/org/apache/spark/executor/TaskMetrics.scala#L128