-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Dev Tools 2019-11-04
mongo/util/stacktrace.h provides a function printStackTrace().
I would like an accompanying function to provide the raw backtrace via either:
std::vector<uintptr_t> getStackTrace()
or:
template<typename F> requires Invokable<F, uintptr_t> void iterateStackTrace(F functor)
I would also like a function to convert a uintptr_t instruction address into a tuple object of dynamic object name and file offset:
std::pair<std::string, uintptr_t> getDynamicObjectOffset(uintptr_t instructionAddress)
Actual container or functor types are relatively immaterial to me so long as they do not incur overhead.
- duplicates
-
SERVER-42406 Provide abstract backtrace support API
- Closed
- is depended on by
-
SERVER-44091 Attach backtraces to DiagnosticInfo
- Closed
- is related to
-
SERVER-42406 Provide abstract backtrace support API
- Closed