Prechádzať zdrojové kódy

HPCC-27078 eclcc needs to log costs to workunit

Signed-off-by: Shamser Ahmed <shamser.ahmed@lexisnexis.com>
Shamser Ahmed 3 rokov pred
rodič
commit
9a5ef6ecef
3 zmenil súbory, kde vykonal 4 pridanie a 2 odobranie
  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?