![]() |
Home | Libraries | People | FAQ | More |
boost::stacktrace::basic_stacktrace
// In header: <boost/stacktrace/stacktrace.hpp> template<typename Allocator> class basic_stacktrace { public: // types typedef boost::stacktrace::frame, Allocator >:: ; typedef boost::stacktrace::frame, Allocator >:: ; typedef boost::stacktrace::frame, Allocator >:: ; typedef boost::stacktrace::frame, Allocator >:: ; typedef boost::stacktrace::frame, Allocator >:: ; typedef boost::stacktrace::frame, Allocator >:: ; typedef boost::stacktrace::frame, Allocator >:: ; typedef boost::stacktrace::frame, Allocator >:: ; typedef boost::stacktrace::frame, Allocator >:: ; typedef boost::stacktrace::frame, Allocator >:: ; typedef boost::stacktrace::frame, Allocator >:: ; typedef boost::stacktrace::frame, Allocator >:: ; // construct/copy/destruct () ; (const ) ; (, , const = ) ; (const basic_stacktrace &); (basic_stacktrace &&) ; basic_stacktrace & (const basic_stacktrace &); basic_stacktrace & (basic_stacktrace &&); ~(); // public member functions () ; () ; () ; () ; () ; () ; () ; () ; () ; () ; () ; bool () ; const boost::stacktrace::frame, Allocator > & () ; // public static functions template<typename Char, typename Trait> basic_stacktrace (Char, Trait > &, const = ); basic_stacktrace (const void *, , const = ); };
Class that on construction copies minimal information about call stack into its internals and provides access to that information.
basic_stacktrace
public
construct/copy/destruct() ;Stores the current function call sequence inside *this without any decoding or any other heavy platform specific operations.
Complexity: O(N) where N is call sequence length, O(1) if BOOST_STACKTRACE_USE_NOOP is defined.
Async-Handler-Safety: Safe if Allocator construction, copying, Allocator::allocate and Allocator::deallocate are async signal safe.
(const a) ;Stores the current function call sequence inside *this without any decoding or any other heavy platform specific operations.
Complexity: O(N) where N is call sequence length, O(1) if BOOST_STACKTRACE_USE_NOOP is defined.
Async-Handler-Safety: Safe if Allocator construction, copying, Allocator::allocate and Allocator::deallocate are async signal safe.
Parameters: |
|
( skip, max_depth, const a = ) ;Stores [skip, skip + max_depth) of the current function call sequence inside *this without any decoding or any other heavy platform specific operations.
Complexity: O(N) where N is call sequence length, O(1) if BOOST_STACKTRACE_USE_NOOP is defined.
Async-Handler-Safety: Safe if Allocator construction, copying, Allocator::allocate and Allocator::deallocate are async signal safe.
Parameters: |
|
||||||
Throws: |
Nothing. Note that default construction of allocator may throw, however it is performed outside the constructor and exception in allocator_type() would not result in calling std::terminate . |
(const basic_stacktrace & st);
Complexity: O(st.size())
Async-Handler-Safety: Safe if Allocator construction, copying, Allocator::allocate and Allocator::deallocate are async signal safe.
(basic_stacktrace && st) ;
Complexity: O(1)
Async-Handler-Safety: Safe if Allocator construction and copying are async signal safe.
basic_stacktrace & (const basic_stacktrace & st);
Complexity: O(st.size())
Async-Handler-Safety: Safe if Allocator construction, copying, Allocator::allocate and Allocator::deallocate are async signal safe.
basic_stacktrace & (basic_stacktrace && st);
Complexity: O(st.size())
Async-Handler-Safety: Safe if Allocator construction and copying are async signal safe.
~();
Complexity: O(1)
Async-Handler-Safety: Safe if Allocator::deallocate is async signal safe.
basic_stacktrace
public member functions() ;
Complexity: O(1)
Async-Handler-Safety: Safe.
Returns: |
Number of function names stored inside the class. |
( frame_no) ;
Complexity: O(1).
Async-Handler-Safety: Safe.
Parameters: |
|
||
Returns: |
frame that references the actual frame info, stored inside *this. |
() ;
Complexity: O(1)
Async-Handler-Safety: Safe.
() ;
Complexity: O(1)
Async-Handler-Safety: Safe.
() ;
Complexity: O(1)
Async-Handler-Safety: Safe.
() ;
Complexity: O(1)
Async-Handler-Safety: Safe.
() ;
Complexity: O(1)
Async-Handler-Safety: Safe.
() ;
Complexity: O(1)
Async-Handler-Safety: Safe.
() ;
Complexity: O(1)
Async-Handler-Safety: Safe.
() ;
Complexity: O(1)
Async-Handler-Safety: Safe.
() ;Allows to check that stack trace capturing was successful.
Complexity: O(1)
Async-Handler-Safety: Safe.
Returns: |
|
bool () ;Allows to check that stack trace failed.
Complexity: O(1)
Async-Handler-Safety: Safe.
Returns: |
|
const boost::stacktrace::frame, Allocator > & () ;
basic_stacktrace
public static functionstemplate<typename Char, typename Trait> basic_stacktrace (Char, Trait > & in, const a = );
Constructs stacktrace from basic_istreamable that references the dumped stacktrace. Terminating zero frame is discarded.
Complexity: O(N)
basic_stacktrace (const void * begin, buffer_size_in_bytes, const a = );
Constructs stacktrace from raw memory dump. Terminating zero frame is discarded.
Complexity: O(size) in worst case
Parameters: |
|