|
|
|
@ -111,7 +111,7 @@ const char *const kTotalSize = "total_size";
|
|
|
|
|
const char *const kTaskCount = "task_count";
|
|
|
|
|
const char *const kTaskId = "task_id";
|
|
|
|
|
const char *const kIndexId = "index_id";
|
|
|
|
|
const char *const kTimeStamp = "time_stamp";
|
|
|
|
|
const char *const kTimeStamp = "time_stamp";
|
|
|
|
|
const char *const kTagId = "tag_id";
|
|
|
|
|
const char* const kRequestId = "request_id";
|
|
|
|
|
const char* const kThreadId = "thread_id";
|
|
|
|
@ -2290,12 +2290,12 @@ Status DavinciModel::ProfileStepInfo(DavinciModel *model, uint16_t tag_id) {
|
|
|
|
|
int64_t time = timespec.tv_sec * 1000 * 1000 * 1000 + timespec.tv_nsec;
|
|
|
|
|
uint32_t task_id = 0;
|
|
|
|
|
uint32_t stream_id = 0;
|
|
|
|
|
rtError_t rt_ret = rtGetTaskIdAndStreamID(&task_id, &stream_id);
|
|
|
|
|
rt_ret = rtGetTaskIdAndStreamID(&task_id, &stream_id);
|
|
|
|
|
if (rt_ret != RT_ERROR_NONE) {
|
|
|
|
|
GELOGE(RT_FAILED, "[Get][RtsInfo] task_id and stream_id failed, ret: 0x%X.", rt_ret);
|
|
|
|
|
return RT_ERROR_TO_GE_STATUS(rt_ret);
|
|
|
|
|
}
|
|
|
|
|
GELOGD("Get profiling args, task id[%u], stream id[%u]", task_id, stream_id);
|
|
|
|
|
GELOGD("Get profiling args, task_id[%u], stream_id[%u]", task_id, stream_id);
|
|
|
|
|
uint32_t device_id = model->GetDeviceId();
|
|
|
|
|
|
|
|
|
|
Json step_info;
|
|
|
|
@ -2617,7 +2617,7 @@ void *DavinciModel::Run(DavinciModel *model) {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
// tag_id 0 means step begin, 1 meas step end.
|
|
|
|
|
(void)ProfileStepInfo(model, 0);
|
|
|
|
|
(void)DavinciModel::ProfileStepInfo(model, 0);
|
|
|
|
|
GELOGI("Getting the input data, model_id:%u", model_id);
|
|
|
|
|
GE_IF_BOOL_EXEC(!model->RunFlag(), break);
|
|
|
|
|
|
|
|
|
@ -2698,7 +2698,7 @@ void *DavinciModel::Run(DavinciModel *model) {
|
|
|
|
|
model->SetProfileTime(MODEL_AFTER_PROC_END));
|
|
|
|
|
GE_IF_BOOL_EXEC(ProfilingManager::Instance().ProfilingModelExecuteOn(), (void)model->SinkTimeProfile(current_data));
|
|
|
|
|
// tag_id 0 means step begin, 1 meas step end.
|
|
|
|
|
(void)ProfileStepInfo(model, 1);
|
|
|
|
|
(void)DavinciModel::ProfileStepInfo(model, 1);
|
|
|
|
|
|
|
|
|
|
model->iterator_count_++;
|
|
|
|
|
model->is_first_execute_ = false;
|
|
|
|
|