bombela/backward-cpp

Load stack trace into user-provided storage

drew-gross opened this issue · 1 comments

Current, backward loads a stack trace into a std::vector that is resized inside load_here.

I'm working on optimizing some of our code involving stack traces and I'd like to be able to eliminate this allocation, by providing pre-allocated memory of my own (most likely stack memory, but also potentially heap memory allocated from a pool). What do you think it would take to refactor the code to allow this? Any suggestions for how to go about it, or any potential pitfalls?