Create multiple stack traces using the simulated call stack of each thread. The traces are appended to a string. The stacks are not unwinded.
- Parameters
-
[in] | dst | the destination string |
- Returns
- *this
- Exceptions
-
Definition at line 806 of file tracer.cpp.
References csdbg::string::append(), csdbg::process::get_thread(), csdbg::thread::handle(), likely, csdbg::util::lock(), m_proc, csdbg::process::thread_count(), trace(), and csdbg::util::unlock().
813 trace(dst, thr->handle());
820 return const_cast<tracer&
> (*this);
virtual u32 thread_count() const
Get the active thread count.
virtual thread * get_thread(pthread_t) const
Get a thread by ID.
process * m_proc
Process handle.
#define likely(expr)
Offer a hint (positive) to the pipeline branch predictor.
static void lock()
Lock the global access mutex.
static void unlock()
Unlock the global access mutex.
virtual tracer & trace(string &)
Create an exception stack trace using the simulated call stack of the current thread. The trace is appended to a string and the simulated stack is unwinded.
tracer()
Object default constructor.
unsigned int u32
32-bit unsigned integer