userver: logging::stacktrace_cache Namespace Reference
Loading...
Searching...
No Matches
logging::stacktrace_cache Namespace Reference

Detailed Description

Contains functions that cache stacktrace results.

Classes

class  StacktraceGuard
 

Functions

std::string to_string (const boost::stacktrace::stacktrace &st)
 
bool GlobalEnableStacktrace (bool enable)
 

Function Documentation

◆ GlobalEnableStacktrace()

bool logging::stacktrace_cache::GlobalEnableStacktrace ( bool enable)

Enable/disable stacktraces. If disabled, stacktrace_cache::to_string() returns with a const string.

Note
Disabling stacktraces is a hack for the Boost.Stacktrace memory leak

◆ to_string()

std::string logging::stacktrace_cache::to_string ( const boost::stacktrace::stacktrace & st)

Get cached stacktrace

See also
GlobalEnableStacktrace