[td-255]fix the bug in recording the elapsed time.
This commit is contained in:
parent
c6e1472ac8
commit
9b01458bd9
|
@ -157,5 +157,5 @@ ELSEIF (${OSTYPE} MATCHES "Alpine")
|
||||||
MESSAGE(STATUS "input osType: Alpine")
|
MESSAGE(STATUS "input osType: Alpine")
|
||||||
SET(TD_APLHINE TRUE)
|
SET(TD_APLHINE TRUE)
|
||||||
ELSE ()
|
ELSE ()
|
||||||
MESSAGE(STATUS "input osType unknown: " ${OSTYPE})
|
MESSAGE(STATUS "The user specified osType is unknown: " ${OSTYPE})
|
||||||
ENDIF ()
|
ENDIF ()
|
||||||
|
|
|
@ -3847,14 +3847,17 @@ int32_t doFillTimeIntervalGapsInResults(SFillInfo* pFillInfo, SSDataBlock *pOutp
|
||||||
}
|
}
|
||||||
|
|
||||||
void publishOperatorProfEvent(SOperatorInfo* operatorInfo, EQueryProfEventType eventType) {
|
void publishOperatorProfEvent(SOperatorInfo* operatorInfo, EQueryProfEventType eventType) {
|
||||||
SQueryProfEvent event;
|
SQueryProfEvent event = {0};
|
||||||
|
|
||||||
event.eventType = eventType;
|
event.eventType = eventType;
|
||||||
event.eventTime = taosGetTimestampUs();
|
event.eventTime = taosGetTimestampUs();
|
||||||
event.operatorType = operatorInfo->operatorType;
|
event.operatorType = operatorInfo->operatorType;
|
||||||
|
|
||||||
SQInfo* qInfo = operatorInfo->pRuntimeEnv->qinfo;
|
if (operatorInfo->pRuntimeEnv) {
|
||||||
if (qInfo->summary.queryProfEvents) {
|
SQInfo* pQInfo = operatorInfo->pRuntimeEnv->qinfo;
|
||||||
taosArrayPush(qInfo->summary.queryProfEvents, &event);
|
if (pQInfo->summary.queryProfEvents) {
|
||||||
|
taosArrayPush(pQInfo->summary.queryProfEvents, &event);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue