MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / ~GraphProfiler

Method ~GraphProfiler

src/plugin/impl/profiler.cpp:99–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99GraphProfiler::~GraphProfiler() noexcept {
100 auto wait = [](const CompNodeEventPtr& ev) {
101 if (ev)
102 ev->host_wait();
103 };
104 for (auto&& i : m_kern_event) {
105 wait(i.second.start);
106 wait(i.second.kern);
107 wait(i.second.end);
108 }
109
110 m_owner_graph->options().user_data.pop_user_data<opr_profile::OprProfileHolder>();
111}
112
113void GraphProfiler::ensure_start_time() {
114 if (!m_start_of_time.valid()) {

Callers

nothing calls this directly

Calls 1

host_waitMethod · 0.80

Tested by

no test coverage detected