已合并
【Profiling】【同步9.1.0】Err Msg易用性整改phase5 #3825
komorebi创建于 7月24日
【Profiling】【同步9.1.0】Err Msg易用性整改phase5 #3825
已合并
共 3 个文件变更+7-7
| @@ -1242,7 +1242,7 @@ | |||
| 1242 | "ErrMessage": "Failed to start Profiling in %s mode because it is already in %s mode.", | 1242 | "ErrMessage": "Failed to start Profiling in %s mode because it is already in %s mode.", |
| 1243 | "Arglist": "mode1,mode2", | 1243 | "Arglist": "mode1,mode2", |
| 1244 | "suggestion": { | 1244 | "suggestion": { |
| 1245 | - "Possible Cause": "Do not enable two or more profile data colection modes. Example: When Profiling is started using msprof command lines, do not use acl APIs in the app to start Profiling data collection.", | 1245 | + "Possible Cause": "Do not enable two or more profile data collection modes. Example: When Profiling is started using msprof command lines, do not use acl APIs in the app to start Profiling data collection.", |
| 1246 | "Solution": "Change the Profiling startup mode as required." | 1246 | "Solution": "Change the Profiling startup mode as required." |
| 1247 | } | 1247 | } |
| 1248 | }, | 1248 | }, |
| @@ -1250,7 +1250,7 @@ | |||
| 1250 | "errClass": "Profiling Errors", | 1250 | "errClass": "Profiling Errors", |
| 1251 | "errTitle": "Resource_Error_Insufficient_Host_Memory", | 1251 | "errTitle": "Resource_Error_Insufficient_Host_Memory", |
| 1252 | "ErrCode": "EK0201", | 1252 | "ErrCode": "EK0201", |
| 1253 | - "ErrMessage": "Failed to allocate host memory for Profiling: %s.", | 1253 | + "ErrMessage": "Failed to allocate %s host memory for Profiling.", |
| 1254 | "Arglist": "buf_size", | 1254 | "Arglist": "buf_size", |
| 1255 | "suggestion": { | 1255 | "suggestion": { |
| 1256 | "Possible Cause": "Allocation failed due to insufficient host memory.", | 1256 | "Possible Cause": "Allocation failed due to insufficient host memory.", |
| @@ -1276,7 +1276,7 @@ | |||
| 1276 | "Arglist": "reason", | 1276 | "Arglist": "reason", |
| 1277 | "suggestion": { | 1277 | "suggestion": { |
| 1278 | "Possible Cause": "New thread cannot be created due to insufficient system thread resources.", | 1278 | "Possible Cause": "New thread cannot be created due to insufficient system thread resources.", |
| 1279 | - "Solution": "Stop unnecessary theads and ensure that the required resource is available." | 1279 | + "Solution": "Stop unnecessary threads and ensure that the required resource is available." |
| 1280 | } | 1280 | } |
| 1281 | }, | 1281 | }, |
| 1282 | { | 1282 | { |
| @@ -180,8 +180,8 @@ Status aclgrphProfDestroyConfig(ACL_GRPH_PROF_CONFIG_PTR profilerConfig) | |||
| 180 | { | 180 | { |
| 181 | if (profilerConfig == nullptr) { | 181 | if (profilerConfig == nullptr) { |
| 182 | MSPROF_LOGE("Destroy profilerConfig failed, profilerConfig must not be nullptr"); | 182 | MSPROF_LOGE("Destroy profilerConfig failed, profilerConfig must not be nullptr"); |
| 183 | - MSPROF_INPUT_ERROR("EK0003", std::vector<std::string>({"config"}), | 183 | + MSPROF_INPUT_ERROR("EK0003", std::vector<std::string>({"value", "config", "reason"}), |
| 184 | - std::vector<std::string>({"profilerConfig"})); | 184 | + std::vector<std::string>({"nullptr", "profilerConfig", "profilerConfig cannot be nullptr"})); |
| 185 | return GE_PROF_FAILED; | 185 | return GE_PROF_FAILED; |
| 186 | } | 186 | } |
| 187 | delete profilerConfig; | 187 | delete profilerConfig; |
| @@ -690,8 +690,8 @@ size_t ProfGetModelId(ProfType type, CONST_VOID_PTR opInfo, size_t opInfoLen, ui | |||
| 690 | int32_t ret = OpDescParser::GetModelId(opInfo, opInfoLen, index, &result); | 690 | int32_t ret = OpDescParser::GetModelId(opInfo, opInfoLen, index, &result); |
| 691 | if (ret != ACL_SUCCESS) { | 691 | if (ret != ACL_SUCCESS) { |
| 692 | MSPROF_LOGE("Failed execute %s%s", g_subscribeTypeMap[type].c_str(), __func__); | 692 | MSPROF_LOGE("Failed execute %s%s", g_subscribeTypeMap[type].c_str(), __func__); |
| 693 | - MSPROF_INNER_ERROR("EK9999", "Failed to get model id on type %s and index %u.", | 693 | + MSPROF_INPUT_ERROR("EK0001", std::vector<std::string>({"value", "param", "reason"}), |
| 694 | - g_subscribeTypeMap[type].c_str(), index); | 694 | + std::vector<std::string>({std::to_string(index), "index", "failed to get model id"})); |
| 695 | return static_cast<size_t>(ret); | 695 | return static_cast<size_t>(ret); |
| 696 | } | 696 | } |
| 697 | MSPROF_LOGD("Successfully execute %s%s", g_subscribeTypeMap[type].c_str(), __func__); | 697 | MSPROF_LOGD("Successfully execute %s%s", g_subscribeTypeMap[type].c_str(), __func__); |