| 125 | } |
| 126 | |
| 127 | void GraphProfiler::record_event(CompNodeEventPtr& dest, CompNode comp_node) { |
| 128 | if (!dest) |
| 129 | dest = comp_node.create_event(CompNode::Event::NEED_TIMER); |
| 130 | dest->record(); |
| 131 | } |
| 132 | |
| 133 | bool GraphProfiler::opr_filter(cg::OperatorNodeBase* opr) { |
| 134 | static bool only_wait = MGB_GETENV("MGB_PROFILE_ONLY_WAIT"); |
nothing calls this directly
no test coverage detected