File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
ydb/library/yql/providers/dq Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ struct TCounters {
6161 Counters[name] = TEntry (value);
6262 }
6363
64+ void SetTimeCounter (const TString& name, i64 value) const {
65+ SetCounter (name, value * 1000 ); // ms => us
66+ }
67+
6468 THashMap<i64 , ui64>& GetHistogram (const TString& name) {
6569 return Histograms[name];
6670 }
Original file line number Diff line number Diff line change @@ -127,13 +127,11 @@ class TTaskCommandExecutor {
127127 " TaskRunner" ,
128128 labels,
129129 name);
130- auto & old = CurrentJobStats[counterName];
131130 if (name.EndsWith (" Time" )) {
132- QueryStat.AddTimeCounter (counterName, value - old );
131+ QueryStat.SetTimeCounter (counterName, value);
133132 } else {
134- QueryStat.AddCounter (counterName, value - old );
133+ QueryStat.SetCounter (counterName, value);
135134 }
136- old = value;
137135 }
138136 });
139137 }
@@ -766,7 +764,6 @@ class TTaskCommandExecutor {
766764 std::unique_ptr<NKikimr::NMiniKQL::TScopedAlloc> Alloc;
767765 NKikimr::NMiniKQL::TComputationNodeFactory ComputationFactory;
768766 TTaskTransformFactory TaskTransformFactory;
769- THashMap<TString, i64 > CurrentJobStats;
770767 NKikimr::NMiniKQL::IStatsRegistry* JobStats;
771768 bool TerminateOnError;
772769 TIntrusivePtr<NDq::IDqTaskRunner> Runner;
You can’t perform that action at this time.
0 commit comments