|
@@ -172,6 +172,16 @@ void HqlTransformStats::gatherTransformStats(IStatisticTarget & target, const ch
|
|
|
target.addStatistic(SSTcompilestage, scope, StTimeTotalExecute, nullptr, cycle_to_nanosec(totalTime), 1, 0, StatsMergeSum);
|
|
|
target.addStatistic(SSTcompilestage, scope, StTimeLocalExecute, nullptr, cycle_to_nanosec(totalTime-(childTime-recursiveTime)), 1, 0, StatsMergeSum);
|
|
|
#endif
|
|
|
+#ifdef TRANSFORM_STATS_DETAILS
|
|
|
+ if (numAnalyseCalls)
|
|
|
+ target.addStatistic(SSTcompilestage, scope, StNumAnalyseExprs, nullptr, numAnalyseCalls, 1, 0, StatsMergeSum);
|
|
|
+ if (numAnalyse)
|
|
|
+ target.addStatistic(SSTcompilestage, scope, StNumUniqueAnalyseExprs, nullptr, numAnalyse, 1, 0, StatsMergeSum);
|
|
|
+ if (numTransformCalls)
|
|
|
+ target.addStatistic(SSTcompilestage, scope, StNumTransformExprs, nullptr, numTransformCalls, 1, 0, StatsMergeSum);
|
|
|
+ if (numTransforms)
|
|
|
+ target.addStatistic(SSTcompilestage, scope, StNumUniqueTransformExprs, nullptr, numTransforms, 1, 0, StatsMergeSum);
|
|
|
+#endif
|
|
|
}
|
|
|
|
|
|
StringBuffer & HqlTransformStats::getText(StringBuffer & out) const
|