MCPcopy Create free account
hub / github.com/bytedance/bolt / recordRuntimeMetrics

Method recordRuntimeMetrics

bolt/exec/HashAggregation.cpp:398–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396}
397
398void HashAggregation::recordRuntimeMetrics() {
399 if (groupingSet_ != nullptr && groupingSet_->hasSpilled()) {
400 this->setRuntimeMetric(
401 OperatorMetricKey::kTotalRowCount,
402 folly::to<std::string>(groupingSet_->totalSpillRowCount()));
403 this->setRuntimeMetric(
404 OperatorMetricKey::kHasBeenProcessedRowCount,
405 folly::to<std::string>(groupingSet_->outputSpillRowCount()));
406 return;
407 }
408 this->setRuntimeMetric(
409 OperatorMetricKey::kTotalRowCount,
410 folly::to<std::string>(groupingSet_->numDistinct()));
411 this->setRuntimeMetric(
412 OperatorMetricKey::kHasBeenProcessedRowCount,
413 folly::to<std::string>(numOutputRows_));
414}
415
416void HashAggregation::prepareOutput(
417 vector_size_t size,

Callers

nothing calls this directly

Calls 5

setRuntimeMetricMethod · 0.80
totalSpillRowCountMethod · 0.80
outputSpillRowCountMethod · 0.80
hasSpilledMethod · 0.45
numDistinctMethod · 0.45

Tested by

no test coverage detected