提交 8be13962 编写于 作者: wmmhello's avatar wmmhello

opti: add log for time cost

上级 e7f47553
...@@ -412,6 +412,8 @@ SColumnInfoData* getColInfoResult(void* metaHandle, SArray* pTableList, SNode* p ...@@ -412,6 +412,8 @@ SColumnInfoData* getColInfoResult(void* metaHandle, SArray* pTableList, SNode* p
} }
metaReaderClear(&mr); metaReaderClear(&mr);
} }
pResBlock->info.rows = rows;
int64_t st1 = taosGetTimestampUs(); int64_t st1 = taosGetTimestampUs();
qDebug("generate tag block rows:%d, cost:%lf ms", rows, st1-st); qDebug("generate tag block rows:%d, cost:%lf ms", rows, st1-st);
...@@ -432,7 +434,6 @@ SColumnInfoData* getColInfoResult(void* metaHandle, SArray* pTableList, SNode* p ...@@ -432,7 +434,6 @@ SColumnInfoData* getColInfoResult(void* metaHandle, SArray* pTableList, SNode* p
qDebug("calculate tag block rows:%d, cost:%lf ms", rows, st2-st1); qDebug("calculate tag block rows:%d, cost:%lf ms", rows, st2-st1);
end: end:
taosArrayDestroy(pBlockList);
taosHashCleanup(ctx.colHash); taosHashCleanup(ctx.colHash);
taosArrayDestroy(ctx.cInfoList); taosArrayDestroy(ctx.cInfoList);
blockDataDestroy(pResBlock); blockDataDestroy(pResBlock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册