浏览代码

Merge pull request #11325 from ghalliday/issue18254

HPCC-18254 Rename some roxie stats to make them consistent

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 7 年之前
父节点
当前提交
49175263bc
共有 2 个文件被更改,包括 11 次插入11 次删除
  1. 4 4
      roxie/ccd/ccddebug.cpp
  2. 7 7
      roxie/ccd/ccdserver.cpp

+ 4 - 4
roxie/ccd/ccddebug.cpp

@@ -274,10 +274,10 @@ public:
         if (isOutput)
             totalTime += 10; // Fudge factor - I don't really know the times but this makes the graph more useable than not supplying a totalTime value
         if (totalTime)
-            putStatsValue(&node, "totalTime", "sum", totalTime);
+            putStatsValue(&node, "TimeTotalExecute", "sum", totalTime);
         unsigned localTime = isOutput ? 10 : (unsigned) (cycle_to_nanosec(in->queryActivity()->queryLocalCycles())/1000); // Fudge factor - I don't really know the times but this makes the graph more useable than not supplying a localTime value
         if (localTime)
-            putStatsValue(&node, "localTime", "sum", localTime);
+            putStatsValue(&node, "TimeLocalExecute", "sum", localTime);
     }
 
     void getEdgeProgressInfo(IPropertyTree &edge)
@@ -285,8 +285,8 @@ public:
         putStatsValue(&edge, "_roxieStarted", "sum", hasStarted);
         if (hasStarted)
         {
-            putStatsValue(&edge, "count", "sum", totalRowCount);
-            putStatsValue(&edge, "maxrowsize", "max", maxRowSize);
+            putStatsValue(&edge, "NumRowsProcessed", "sum", totalRowCount);
+            putStatsValue(&edge, "SizeMaxRowSize", "max", maxRowSize);
         }
     }
 };

+ 7 - 7
roxie/ccd/ccdserver.cpp

@@ -515,10 +515,10 @@ public:
     {
         if (output == 0)
         {
-            putStatsValue(&edge, "count", "sum", processed);
+            putStatsValue(&edge, "NumRowsProcessed", "sum", processed);
             auto _started = started.load();
             if (_started)
-                putStatsValue(&edge, "started", "sum", _started);
+                putStatsValue(&edge, "NumStarts", "sum", _started);
         }
         else
             ERRLOG("unexpected call to getEdgeProcessInfo for output %d in activity %d", output, queryId());
@@ -541,10 +541,10 @@ public:
     virtual void getActivityMetrics(StringBuffer &reply) const
     {
         CActivityFactory::getActivityMetrics(reply);
-        putStatsValue(reply, "_roxieStarted", "sum", started);
+        putStatsValue(reply, "NumStarts", "sum", started);
         CriticalBlock b(statsCrit);
-        putStatsValue(reply, "totalTime", "sum", (unsigned) (mystats.getSerialStatisticValue(StTimeTotalExecute)/1000));
-        putStatsValue(reply, "localTime", "sum", (unsigned) (mystats.getSerialStatisticValue(StTimeLocalExecute)/1000));
+        putStatsValue(reply, "TimeTotalExecute", "sum", (unsigned) (mystats.getSerialStatisticValue(StTimeTotalExecute)/1000));
+        putStatsValue(reply, "TimeLocalExecute", "sum", (unsigned) (mystats.getSerialStatisticValue(StTimeLocalExecute)/1000));
     }
     virtual unsigned __int64 queryLocalTimeNs() const
     {
@@ -757,8 +757,8 @@ protected:
     virtual void getEdgeProgressInfo(unsigned idx, IPropertyTree &edge) const
     {
         assertex(numOutputs ? idx < numOutputs : idx==0);
-        putStatsValue(&edge, "count", "sum", processedArray[idx]);
-        putStatsValue(&edge, "started", "sum", startedArray[idx]);
+        putStatsValue(&edge, "NumRowsProcessed", "sum", processedArray[idx]);
+        putStatsValue(&edge, "NumStarts", "sum", startedArray[idx]);
     }
 
     virtual void resetNodeProgressInfo()