boost::stacktrace::safe_dump_to — Opens a file and rewrites its content with current function call sequence.
// In header: <boost/stacktrace/safe_dump_to.hpp> std::size_t safe_dump_to(const char * file);
Complexity: O(N) where N is call sequence length, O(1) if BOOST_STACKTRACE_USE_NOOP is defined.
Async-Handler-Safety: Safe.
Parameters:
file
File to store current function call sequence.
Returns:
Stored call sequence depth including terminating zero frame.