瀏覽代碼

Merge pull request #15769 from shamser/issue27078

HPCC-27078 eclcc needs to log costs to workunit

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Merged-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 3 年之前
父節點
當前提交
5862955aba
共有 3 個文件被更改,包括 4 次插入2 次删除
  1. 1 1
      ecl/eclcc/eclcc.cpp
  2. 1 0
      system/jlib/jstatcodes.h
  3. 2 1
      system/jlib/jstats.cpp

+ 1 - 1
ecl/eclcc/eclcc.cpp

@@ -1542,7 +1542,7 @@ void EclCC::processSingleQuery(EclCompileInstance & instance,
 
     const cost_type cost = money2cost_type(calcCost(getMachineCostRate(), nanoToMilli(totalTimeNs)));
     if (cost)
-        instance.wu->setStatistic(queryStatisticsComponentType(), queryStatisticsComponentName(), SSTcompilestage, scopeName, StCostExecute, NULL, cost, 1, 0, StatsMergeReplace);
+        instance.wu->setStatistic(queryStatisticsComponentType(), queryStatisticsComponentName(), SSTcompilestage, scopeName, StCostCompile, NULL, cost, 1, 0, StatsMergeReplace);
 
     if (systemFinishTime.getTotal())
     {

+ 1 - 0
system/jlib/jstatcodes.h

@@ -242,6 +242,7 @@ enum StatisticKind
     StCycleAgentWaitCycles,
     StCostFileAccess,
     StNumPods,
+    StCostCompile,
     StMax,
 
     //For any quantity there is potentially the following variants.

+ 2 - 1
system/jlib/jstats.cpp

@@ -917,7 +917,8 @@ static const StatisticMeta statsMetaData[StMax] = {
     { TIMESTAT(AgentWait) },
     { CYCLESTAT(AgentWait) },
     { COSTSTAT(FileAccess) },
-    { NUMSTAT(Pods) }
+    { NUMSTAT(Pods) },
+    { COSTSTAT(Compile) }
 };
 
 //Is a 0 value likely, and useful to be reported if it does happen to be zero?