Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ get_py_backtrace
Function
get_py_backtrace
imperative/python/src/backtrace.cpp:220–223 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
218
}
219
220
std::string get_py_backtrace() {
221
auto frame = PyEval_GetFrame();
222
return get_frameinfo_from_pyframe(frame)->traceback();
223
}
224
225
} // namespace mgb::imperative::python
Callers
nothing calls this directly
Calls
2
get_frameinfo_from_pyframe
Function · 0.85
traceback
Method · 0.80
Tested by
no test coverage detected