MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / record_event

Method record_event

src/plugin/impl/profiler.cpp:127–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void 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
133bool GraphProfiler::opr_filter(cg::OperatorNodeBase* opr) {
134 static bool only_wait = MGB_GETENV("MGB_PROFILE_ONLY_WAIT");

Callers

nothing calls this directly

Calls 2

create_eventMethod · 0.45
recordMethod · 0.45

Tested by

no test coverage detected