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

Method fmt_to_str

src/core/impl/utils/debug.cpp:298–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298void BacktraceResult::fmt_to_str(std::string& dst) {
299 if (stack.size() > 0) {
300 dst.append("\nbacktrace:\n");
301 for (auto&& i : stack) {
302 dst.append(i);
303 dst.append("\n");
304 }
305 }
306}
307
308void debug::set_fork_cuda_warning_flag(int flag) {
309#if MGB_CUDA

Callers 2

initMethod · 0.80
death_handlerMethod · 0.80

Calls 2

sizeMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected