Skip to content

Commit 2d82791

Browse files
committed
Removed TotalCpuTime
1 parent 993fe8a commit 2d82791

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

ydb/core/kqp/opt/kqp_query_plan.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -2720,15 +2720,12 @@ TString AddExecStatsToTxPlan(const TString& txPlanJson, const NYql::NDqProto::TD
27202720
}
27212721

27222722
TString SerializeAnalyzePlan(const NKqpProto::TKqpStatsQuery& queryStats) {
2723-
ui64 totalCpuTimeUs = 0;
27242723
TVector<const TString> txPlans;
27252724
for (const auto& execStats: queryStats.GetExecutions()) {
2726-
totalCpuTimeUs += execStats.GetCpuTimeUs();
27272725
for (const auto& txPlan: execStats.GetTxPlansWithStats()) {
27282726
txPlans.push_back(txPlan);
27292727
}
27302728
}
2731-
totalCpuTimeUs += queryStats.GetWorkerCpuTimeUs();
27322729

27332730
NJsonWriter::TBuf writer;
27342731
writer.BeginObject();
@@ -2742,12 +2739,9 @@ TString SerializeAnalyzePlan(const NKqpProto::TKqpStatsQuery& queryStats) {
27422739
writer.WriteKey("DurationUs").WriteLongLong(compilation.GetDurationUs());
27432740
writer.WriteKey("CpuTimeUs").WriteLongLong(compilation.GetCpuTimeUs());
27442741
writer.EndObject();
2745-
2746-
totalCpuTimeUs += compilation.GetCpuTimeUs();
27472742
}
27482743

27492744
writer.WriteKey("ProcessCpuTimeUs").WriteLongLong(queryStats.GetWorkerCpuTimeUs());
2750-
writer.WriteKey("TotalCpuTimeUs").WriteLongLong(totalCpuTimeUs);
27512745
writer.WriteKey("TotalDurationUs").WriteLongLong(queryStats.GetDurationUs());
27522746
writer.WriteKey("QueuedTimeUs").WriteLongLong(queryStats.GetQueuedTimeUs());
27532747
writer.EndObject();

0 commit comments

Comments
 (0)