|
|
|
@@ -103,7 +103,7 @@ ge::Status Analyzer::Initialize() { |
|
|
|
// Initialize file |
|
|
|
string real_path = RealPath(kFilePath.c_str()); |
|
|
|
if (real_path.empty()) { |
|
|
|
GELOGE(FAILED, "[Check][AnalyzerFilePath] File path is invalid!"); |
|
|
|
GELOGE(FAILED, "[Check][AnalyzerFilePath] File path is empty, path invalid!"); |
|
|
|
return FAILED; |
|
|
|
} |
|
|
|
json_file_name_ = real_path + "/" + kAnalyzeFile; |
|
|
|
@@ -200,7 +200,7 @@ ge::Status Analyzer::CreateAnalyzerFile() { |
|
|
|
} |
|
|
|
|
|
|
|
ge::Status Analyzer::SaveAnalyzerDataToFile(uint64_t session_id, uint64_t graph_id) { |
|
|
|
GELOGD("start to save analyze file!"); |
|
|
|
GELOGD("start to save analyzer file!"); |
|
|
|
|
|
|
|
auto graph_info = GetJsonObject(session_id, graph_id); |
|
|
|
GE_CHECK_NOTNULL(graph_info); |
|
|
|
@@ -229,7 +229,7 @@ ge::Status Analyzer::SaveAnalyzerDataToFile(uint64_t session_id, uint64_t graph_ |
|
|
|
} |
|
|
|
|
|
|
|
ge::Status Analyzer::DoAnalyze(DataInfo &data_info) { |
|
|
|
GELOGD("start to do analyzer!"); |
|
|
|
GELOGD("start to do analyzer process!"); |
|
|
|
|
|
|
|
auto pnode = data_info.node_ptr; |
|
|
|
GE_CHECK_NOTNULL(pnode); |
|
|
|
@@ -314,4 +314,4 @@ void Analyzer::GraphInfoToJson(json& j, const GraphInfo &graph_info) { |
|
|
|
} |
|
|
|
j[kOp] = json_op_infos; |
|
|
|
} |
|
|
|
} // namespace ge |
|
|
|
} //namespace ge |