MCPcopy Create free account
hub / github.com/bytedance/bolt / printExprWithStats

Function printExprWithStats

bolt/expression/Expr.cpp:2068–2079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2066}
2067
2068std::string printExprWithStats(const exec::ExprSet& exprSet) {
2069 const auto& exprs = exprSet.exprs();
2070 std::unordered_map<const exec::Expr*, uint32_t> uniqueExprs;
2071 std::stringstream out;
2072 for (auto i = 0; i < exprs.size(); ++i) {
2073 if (i > 0) {
2074 out << std::endl;
2075 }
2076 printExprTree(*exprs[i], "", true /*withStats*/, out, uniqueExprs);
2077 }
2078 return out.str();
2079}
2080
2081void SimpleExpressionEvaluator::evaluate(
2082 exec::ExprSet* exprSet,

Callers 1

TEST_FFunction · 0.85

Calls 4

printExprTreeFunction · 0.85
exprsMethod · 0.80
strMethod · 0.80
sizeMethod · 0.45

Tested by 1

TEST_FFunction · 0.68