MCPcopy Create free account
hub / github.com/davisking/dlib / get_stack_trace

Function get_stack_trace

dlib/stack_trace.cpp:71–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69// ----------------------------------------------------------------------------------------
70
71 const std::string get_stack_trace()
72 {
73 std::ostringstream sout;
74 auto& stack = get_dlib_stack_trace_stack();
75 stack.reset();
76 while (stack.move_next())
77 {
78 stack_tracer_data data = stack.element();
79 sout << data.file_name << ":" << data.line_number << "\n " << data.funct_name << "\n";
80 }
81 return sout.str();
82 }
83
84// ----------------------------------------------------------------------------------------
85

Callers

nothing calls this directly

Calls 3

resetMethod · 0.45
move_nextMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected