4
4
#include " yql_expr_type_annotation.h"
5
5
6
6
#include < yql/essentials/utils/log/log.h>
7
+ #include < yql/essentials/utils/log/profile.h>
7
8
8
9
namespace NYql {
9
10
@@ -343,7 +344,7 @@ namespace {
343
344
}
344
345
}
345
346
346
- void VisitExprLambdasLastInternal (const TExprNode::TPtr& node,
347
+ void VisitExprLambdasLastInternal (const TExprNode::TPtr& node,
347
348
const TExprVisitPtrFunc& preLambdaFunc,
348
349
const TExprVisitPtrFunc& postLambdaFunc,
349
350
TNodeSet& visitedNodes)
@@ -357,9 +358,9 @@ namespace {
357
358
VisitExprLambdasLastInternal (child, preLambdaFunc, postLambdaFunc, visitedNodes);
358
359
}
359
360
}
360
-
361
+
361
362
preLambdaFunc (node);
362
-
363
+
363
364
for (auto child : node->Children ()) {
364
365
if (child->IsLambda ()) {
365
366
VisitExprLambdasLastInternal (child, preLambdaFunc, postLambdaFunc, visitedNodes);
@@ -536,7 +537,7 @@ IGraphTransformer::TStatus ExpandApply(const TExprNode::TPtr& input, TExprNode::
536
537
if (ctx.Step .IsDone (TExprStep::ExpandApplyForLambdas))
537
538
return IGraphTransformer::TStatus::Ok;
538
539
539
- YQL_CLOG (DEBUG, Core) << " Start ExpandApply" ;
540
+ YQL_PROFILE_SCOPE (DEBUG, " ExpandApply" ) ;
540
541
TOptimizeExprSettings settings (nullptr );
541
542
auto ret = OptimizeExpr (input, output, [&](const TExprNode::TPtr& node, bool & changed, TExprContext& ctx) -> TExprNode::TPtr {
542
543
if (node->Content () == " WithOptionalArgs" ) {
@@ -858,7 +859,6 @@ IGraphTransformer::TStatus ExpandApply(const TExprNode::TPtr& input, TExprNode::
858
859
ctx.Step .Done (TExprStep::ExpandApplyForLambdas);
859
860
}
860
861
861
- YQL_CLOG (DEBUG, Core) << " Finish ExpandApply" ;
862
862
return ret;
863
863
}
864
864
@@ -910,7 +910,7 @@ void VisitExpr(const TExprNode& root, const TExprVisitRefFunc& preFunc, const TE
910
910
void VisitExpr (const TExprNode::TPtr& root, const TExprVisitPtrFunc& func, TNodeSet& visitedNodes) {
911
911
VisitExprInternal (root, func, {}, visitedNodes);
912
912
}
913
-
913
+
914
914
void VisitExprLambdasLast (const TExprNode::TPtr& root, const TExprVisitPtrFunc& preLambdaFunc, const TExprVisitPtrFunc& postLambdaFunc)
915
915
{
916
916
TNodeSet visitedNodes;
0 commit comments