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

opti: add log for time cost

上级 e0393347
...@@ -384,6 +384,7 @@ SColumnInfoData* getColInfoResult(void* metaHandle, SArray* pTableList, SNode* p ...@@ -384,6 +384,7 @@ SColumnInfoData* getColInfoResult(void* metaHandle, SArray* pTableList, SNode* p
goto end; goto end;
} }
int64_t st = taosGetTimestampUs();
for (int32_t i = 0; i < rows; i++) { for (int32_t i = 0; i < rows; i++) {
STableKeyInfo* info = taosArrayGet(pTableList, i); STableKeyInfo* info = taosArrayGet(pTableList, i);
...@@ -411,6 +412,8 @@ SColumnInfoData* getColInfoResult(void* metaHandle, SArray* pTableList, SNode* p ...@@ -411,6 +412,8 @@ SColumnInfoData* getColInfoResult(void* metaHandle, SArray* pTableList, SNode* p
} }
metaReaderClear(&mr); metaReaderClear(&mr);
} }
int64_t st1 = taosGetTimestampUs();
qDebug("generate tag block rows:%d, cost:%lf ms", rows, st1-st);
pBlockList = taosArrayInit(2, POINTER_BYTES); pBlockList = taosArrayInit(2, POINTER_BYTES);
taosArrayPush(pBlockList, &pResBlock); taosArrayPush(pBlockList, &pResBlock);
...@@ -425,6 +428,8 @@ SColumnInfoData* getColInfoResult(void* metaHandle, SArray* pTableList, SNode* p ...@@ -425,6 +428,8 @@ SColumnInfoData* getColInfoResult(void* metaHandle, SArray* pTableList, SNode* p
if(code != TSDB_CODE_SUCCESS){ if(code != TSDB_CODE_SUCCESS){
terrno = code; terrno = code;
} }
int64_t st2 = taosGetTimestampUs();
qDebug("calculate tag block rows:%d, cost:%lf ms", rows, st2-st1);
end: end:
taosArrayDestroy(pBlockList); taosArrayDestroy(pBlockList);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册