| @@ -30,6 +30,7 @@ class GraphExecOrderRecorder : public BaseRecorder { | |||||
| GraphExecOrderRecorder(const std::string &module, const std::string &tag, | GraphExecOrderRecorder(const std::string &module, const std::string &tag, | ||||
| const std::vector<CNodePtr> &final_exec_order, int graph_id) | const std::vector<CNodePtr> &final_exec_order, int graph_id) | ||||
| : BaseRecorder(module, tag), exec_order_(final_exec_order), graph_id_(graph_id) {} | : BaseRecorder(module, tag), exec_order_(final_exec_order), graph_id_(graph_id) {} | ||||
| ~GraphExecOrderRecorder() {} | |||||
| void SetExecOrder(const std::vector<CNodePtr> &final_exec_order) { exec_order_ = final_exec_order; } | void SetExecOrder(const std::vector<CNodePtr> &final_exec_order) { exec_order_ = final_exec_order; } | ||||
| virtual void Export(); | virtual void Export(); | ||||
| @@ -65,7 +65,6 @@ void GraphRecorder::Export() { | |||||
| } | } | ||||
| std::string suffix = graph_id >= 0 ? std::to_string(graph_id) : ""; | std::string suffix = graph_id >= 0 ? std::to_string(graph_id) : ""; | ||||
| auto tmp_realpath = GetFileRealPath(suffix); | auto tmp_realpath = GetFileRealPath(suffix); | ||||
| if (!tmp_realpath.has_value()) { | if (!tmp_realpath.has_value()) { | ||||
| return; | return; | ||||
| } | } | ||||
| @@ -43,6 +43,7 @@ class MemAddressRecorder : public BaseRecorder { | |||||
| private: | private: | ||||
| MemAddressRecorder() {} | MemAddressRecorder() {} | ||||
| MemAddressRecorder(const MemAddressRecorder &recorder); | MemAddressRecorder(const MemAddressRecorder &recorder); | ||||
| ~MemAddressRecorder() {} | |||||
| MemAddressRecorder &operator=(const MemAddressRecorder &recorder); | MemAddressRecorder &operator=(const MemAddressRecorder &recorder); | ||||
| mutable std::mutex mtx_; | mutable std::mutex mtx_; | ||||
| @@ -19,7 +19,6 @@ | |||||
| #include "debug/env_config_parser.h" | #include "debug/env_config_parser.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| void RecorderManager::UpdateRdrEnable() { | void RecorderManager::UpdateRdrEnable() { | ||||
| static bool updated = false; | static bool updated = false; | ||||
| if (updated) { | if (updated) { | ||||
| @@ -142,6 +142,5 @@ void TriggerAll() { | |||||
| } | } | ||||
| void ClearAll() { mindspore::RecorderManager::Instance().ClearAll(); } | void ClearAll() { mindspore::RecorderManager::Instance().ClearAll(); } | ||||
| } // namespace RDR | } // namespace RDR | ||||
| } // namespace mindspore | } // namespace mindspore | ||||
| @@ -38,6 +38,7 @@ class ExecNode { | |||||
| ExecNode(const size_t index, const std::string &node_name, const uint32_t &logic_id, const uint32_t &stream_id, | ExecNode(const size_t index, const std::string &node_name, const uint32_t &logic_id, const uint32_t &stream_id, | ||||
| const std::string &node_info) | const std::string &node_info) | ||||
| : index_(index), node_name_(node_name), logic_id_(logic_id), stream_id_(stream_id), node_info_(node_info) {} | : index_(index), node_name_(node_name), logic_id_(logic_id), stream_id_(stream_id), node_info_(node_info) {} | ||||
| ~ExecNode() {} | |||||
| void SetEventId(const uint32_t &event_id) { event_id_ = event_id; } | void SetEventId(const uint32_t &event_id) { event_id_ = event_id; } | ||||
| void SetLabelId(const uint32_t &label_id) { label_ids_.push_back(label_id); } | void SetLabelId(const uint32_t &label_id) { label_ids_.push_back(label_id); } | ||||
| void SetActiveStreamId(const uint32_t &active_stream_id) { active_stream_ids_.push_back(active_stream_id); } | void SetActiveStreamId(const uint32_t &active_stream_id) { active_stream_ids_.push_back(active_stream_id); } | ||||
| @@ -98,6 +99,7 @@ class StreamExecOrderRecorder : public BaseRecorder { | |||||
| exec_order_.push_back(std::move(exec_node_ptr)); | exec_order_.push_back(std::move(exec_node_ptr)); | ||||
| } | } | ||||
| } | } | ||||
| ~StreamExecOrderRecorder() {} | |||||
| virtual void Export(); | virtual void Export(); | ||||
| private: | private: | ||||
| @@ -37,6 +37,7 @@ class TaskDebugInfoRecorder : public BaseRecorder { | |||||
| TaskDebugInfoRecorder(const std::string &module, const std::string &tag, | TaskDebugInfoRecorder(const std::string &module, const std::string &tag, | ||||
| const std::vector<TaskDebugInfoPtr> &task_debug_info, int graph_id) | const std::vector<TaskDebugInfoPtr> &task_debug_info, int graph_id) | ||||
| : BaseRecorder(module, tag), graph_id_(graph_id), task_debug_info_(task_debug_info) {} | : BaseRecorder(module, tag), graph_id_(graph_id), task_debug_info_(task_debug_info) {} | ||||
| ~TaskDebugInfoRecorder() {} | |||||
| virtual void Export(); | virtual void Export(); | ||||
| private: | private: | ||||