From 19f5eb0932f31e72190d57b869e196486822580a Mon Sep 17 00:00:00 2001 From: sijchen Date: Mon, 11 Jan 2016 14:55:06 -0800 Subject: [PATCH] complete a debug trace in load-balancing task --- codec/encoder/core/src/wels_task_encoder.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/codec/encoder/core/src/wels_task_encoder.cpp b/codec/encoder/core/src/wels_task_encoder.cpp index 8be973d5..585cf080 100644 --- a/codec/encoder/core/src/wels_task_encoder.cpp +++ b/codec/encoder/core/src/wels_task_encoder.cpp @@ -201,7 +201,7 @@ WelsErrorType CWelsLoadBalancingSlicingEncodingTask::InitTask() { m_iSliceStart = WelsTime(); WelsLog (&m_pCtx->sLogCtx, WELS_LOG_DEBUG, - "[MT] CWelsLoadBalancingSlicingEncodingTask()InitTask for m_iSliceIdx %d at %" PRId64, + "[MT] CWelsLoadBalancingSlicingEncodingTask()InitTask for m_iSliceIdx %d at time=%" PRId64, m_iSliceIdx, m_iSliceStart); return ENC_RETURN_SUCCESS; @@ -212,13 +212,14 @@ void CWelsLoadBalancingSlicingEncodingTask::FinishTask() { m_pSlice->uiSliceConsumeTime = (uint32_t) (WelsTime() - m_iSliceStart); WelsLog (&m_pCtx->sLogCtx, WELS_LOG_DEBUG, - "[MT] CWelsLoadBalancingSlicingEncodingTask()FinishTask, coding_idx %d, um_iSliceIdx %d, uiSliceConsumeTime %d, m_iSliceSize %d, iFirstMbInSlice %d, count_num_mb_in_slice %d", + "[MT] CWelsLoadBalancingSlicingEncodingTask()FinishTask, coding_idx %d, um_iSliceIdx %d, uiSliceConsumeTime %d, m_iSliceSize %d, iFirstMbInSlice %d, count_num_mb_in_slice %d at time=%" PRId64, m_pCtx->iCodingIndex, m_iSliceIdx, m_pSlice->uiSliceConsumeTime, m_iSliceSize, m_pCtx->pCurDqLayer->sLayerInfo.pSliceInLayer[m_iSliceIdx].sSliceHeaderExt.sSliceHeader.iFirstMbInSlice, - m_pSlice->iCountMbNumInSlice); + m_pSlice->iCountMbNumInSlice, + (m_pSlice->uiSliceConsumeTime + m_iSliceStart)); } //CWelsConstrainedSizeSlicingEncodingTask