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

Method stop_step

imperative/src/impl/interpreter/interpreter_impl.cpp:1455–1462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1453}
1454
1455void ChannelImpl::stop_step() {
1456 MGB_LOCK_GUARD(m_spin);
1457 assert_available();
1458 mgb_assert(Profiler::is_profiling() == true, "Profiler isn't profiling!");
1459 m_worker.add_task(
1460 {Profiler::next_id(), StopStep{},
1461 get_channel_state().stack_manager.dump()});
1462}
1463
1464void ChannelImpl::push_scope(std::string name, ScopeType type) {
1465 MGB_LOCK_GUARD(m_spin);

Callers

nothing calls this directly

Calls 3

is_profilingFunction · 0.85
add_taskMethod · 0.45
dumpMethod · 0.45

Tested by

no test coverage detected