MCPcopy Create free account
hub / github.com/acl-dev/acl / stackshow

Method stackshow

lib_fiber/cpp/src/fiber.cpp:442–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440}
441
442void fiber::stackshow(const fiber& fb, size_t max /* = 50 */)
443{
444 std::vector<fiber_frame> stack;
445 stacktrace(fb, stack, max);
446
447 for (std::vector<fiber_frame>::const_iterator cit = stack.begin();
448 cit != stack.end(); ++cit) {
449
450 printf("0x%lx(%s)+0x%lx\r\n",
451 (*cit).pc, (*cit).func.c_str(), (*cit).off);
452 }
453}
454
455//////////////////////////////////////////////////////////////////////////////
456

Callers

nothing calls this directly

Calls 4

stacktraceFunction · 0.85
beginMethod · 0.80
endMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected