fesa-core  4.2.0
fesa::ProcessStackTrace Class Reference

#include <ProcessStackTrace.h>

Static Public Member Functions

static boost::optional
< StackTrace
ofThread (const Thread *thread=Thread::current())
 
static void dumpThread (const Thread *thread, std::ostream &stream)
 
static void dumpAllThreads (std::ostream &stream=std::cout)
 

Detailed Description

Helper class which allows to get stack traces of all permanent threads registered in the FESA process.

Member Function Documentation

void fesa::ProcessStackTrace::dumpAllThreads ( std::ostream &  stream = std::cout)
static

Writes the stack traces of all registered permanent threads to the given stream.

Parameters
streamthe stream to write to
void fesa::ProcessStackTrace::dumpThread ( const Thread thread,
std::ostream &  stream 
)
static

Writes a thread's stack trace to the given stream.

Parameters
threadthe thread to dump
streamthe stream to write to
boost::optional< StackTrace > fesa::ProcessStackTrace::ofThread ( const Thread thread = Thread::current())
static

Returns the stack trace of the given thread, or nothing if an error occurs.

Parameters
threadpointer to the Thread object whose stack trace is requested
Returns
the stack trace obtained, or nothing if an error occurs.

The documentation for this class was generated from the following files: