提交 5becc19c 编写于 作者: D dapan1121

fix: add debug info

上级 8ef7fa9b
......@@ -247,6 +247,9 @@ SSDataBlock* doProjectOperation(SOperatorInfo* pOperator) {
return doGenerateSourceData(pOperator);
}
int64_t st0 = taosGetTimestampUs();
int64_t st1 = 0, st2 = 0;
while (1) {
while (1) {
blockDataCleanup(pRes);
......@@ -258,6 +261,7 @@ SSDataBlock* doProjectOperation(SOperatorInfo* pOperator) {
setOperatorCompleted(pOperator);
break;
}
st1 = taosGetTimestampUs();
// if (pTaskInfo->execModel == OPTR_EXEC_MODEL_QUEUE) {
// qDebug("set status recv");
// pOperator->status = OP_EXEC_RECV;
......@@ -299,6 +303,8 @@ SSDataBlock* doProjectOperation(SOperatorInfo* pOperator) {
continue;
}
st2 = taosGetTimestampUs();
break;
}
......@@ -344,6 +350,10 @@ SSDataBlock* doProjectOperation(SOperatorInfo* pOperator) {
pOperator->cost.openCost = (taosGetTimestampUs() - st) / 1000.0;
}
if (p->info.rows > 0) {
qError("doProjection, open:%" PRId64 "us, project:%" PRId64 "us, rows:%" PRId64,st1-st0,st2-st1,p->info.rows);
}
return (p->info.rows > 0) ? p : NULL;
}
......
......@@ -1275,15 +1275,20 @@ static SSDataBlock* doBuildIntervalResult(SOperatorInfo* pOperator) {
return NULL;
}
int64_t st0 = taosGetTimestampUs();
SSDataBlock* pBlock = pInfo->binfo.pRes;
pTaskInfo->code = pOperator->fpSet._openFn(pOperator);
if (pTaskInfo->code != TSDB_CODE_SUCCESS) {
return NULL;
}
int64_t st1 = taosGetTimestampUs();
int64_t st2 = 0, st3 = 0;
while (1) {
doBuildResultDatablock(pOperator, &pInfo->binfo, &pInfo->groupResInfo, pInfo->aggSup.pResultBuf);
st2 = taosGetTimestampUs();
doFilter(pBlock, pOperator->exprSupp.pFilterInfo, NULL);
st3 = taosGetTimestampUs();
bool hasRemain = hasRemainResults(&pInfo->groupResInfo);
if (!hasRemain) {
......@@ -1292,6 +1297,7 @@ static SSDataBlock* doBuildIntervalResult(SOperatorInfo* pOperator) {
}
if (pBlock->info.rows > 0) {
qError("interval open:%" PRId64 "us, build:%" PRId64 "us, filter:%" PRId64 "us, rows:%" PRId64, st1-st0,st2-st1,st3-st2,pBlock->info.rows);
break;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册