| 111 | } |
| 112 | |
| 113 | void GraphProfiler::ensure_start_time() { |
| 114 | if (!m_start_of_time.valid()) { |
| 115 | // set up for the first time |
| 116 | m_start_of_time = CompNode::UnorderedMap<std::unique_ptr<CompNode::Event>>(); |
| 117 | |
| 118 | for (auto i : *m_used_comp_node) { |
| 119 | i.sync(); |
| 120 | auto&& event = m_start_of_time.val()[i]; |
| 121 | event = i.create_event(CompNode::Event::NEED_TIMER); |
| 122 | event->record(); |
| 123 | } |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | void GraphProfiler::record_event(CompNodeEventPtr& dest, CompNode comp_node) { |
| 128 | if (!dest) |
nothing calls this directly
no test coverage detected