CppCommon  1.0.4.1
C++ Common Library
Public Member Functions | Static Public Member Functions | List of all members
CppCommon::StackTraceManager Class Reference

Stack trace manager. More...

#include <stack_trace_manager.h>

Inheritance diagram for CppCommon::StackTraceManager:
CppCommon::Singleton< StackTraceManager >

Public Member Functions

 StackTraceManager (const StackTraceManager &)=delete
 
 StackTraceManager (StackTraceManager &&)=delete
 
 ~StackTraceManager ()
 
StackTraceManageroperator= (const StackTraceManager &)=delete
 
StackTraceManageroperator= (StackTraceManager &&)=delete
 
- Public Member Functions inherited from CppCommon::Singleton< StackTraceManager >
 Singleton (const Singleton &)=delete
 
 Singleton (Singleton &&)=delete
 
Singletonoperator= (const Singleton &)=delete
 
Singletonoperator= (Singleton &&)=delete
 

Static Public Member Functions

static void Initialize ()
 Initialize stack trace manager. More...
 
static void Cleanup ()
 Cleanup stack trace manager. More...
 
- Static Public Member Functions inherited from CppCommon::Singleton< StackTraceManager >
static StackTraceManagerGetInstance ()
 Get singleton instance. More...
 

Detailed Description

Stack trace manager.

Provides interface to initialize and cleanup stack trace snapshots capturing.

Not thread-safe.

Definition at line 25 of file stack_trace_manager.h.

Constructor & Destructor Documentation

◆ StackTraceManager() [1/2]

CppCommon::StackTraceManager::StackTraceManager ( const StackTraceManager )
delete

◆ StackTraceManager() [2/2]

CppCommon::StackTraceManager::StackTraceManager ( StackTraceManager &&  )
delete

◆ ~StackTraceManager()

CppCommon::StackTraceManager::~StackTraceManager ( )

Definition at line 114 of file stack_trace_manager.cpp.

Member Function Documentation

◆ Cleanup()

void CppCommon::StackTraceManager::Cleanup ( )
static

Cleanup stack trace manager.

This method should be called just before the current process exits!

Examples
errors_exceptions_handler.cpp, and system_stack_trace.cpp.

Definition at line 121 of file stack_trace_manager.cpp.

◆ Initialize()

void CppCommon::StackTraceManager::Initialize ( )
static

Initialize stack trace manager.

This method should be called before you start capture any stack trace snapshots. It is recommended to call the method just after the current process start!

Examples
errors_exceptions_handler.cpp, system_stack_trace.cpp, and threads_thread.cpp.

Definition at line 120 of file stack_trace_manager.cpp.

◆ operator=() [1/2]

StackTraceManager& CppCommon::StackTraceManager::operator= ( const StackTraceManager )
delete

◆ operator=() [2/2]

StackTraceManager& CppCommon::StackTraceManager::operator= ( StackTraceManager &&  )
delete

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