Skip to content

Commit

Permalink
[native] Report driver level runtime statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuhta authored and xiaoxmeng committed Mar 26, 2024
1 parent 8b8c9e4 commit 290876b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions presto-native-execution/presto_cpp/main/PrestoTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,12 @@ protocol::TaskInfo PrestoTask::updateInfoLocked() {
pipelineOut.outputDataSizeInBytes;
}

for (const auto& driverStat : pipeline.driverStats) {
for (const auto& [name, value] : driverStat.runtimeStats) {
addRuntimeMetric(taskRuntimeStats, name, value);
}
}

for (auto j = 0; j < pipeline.operatorStats.size(); ++j) {
auto& opOut = pipelineOut.operatorSummaries[j];
auto& op = pipeline.operatorStats[j];
Expand Down

0 comments on commit 290876b

Please sign in to comment.