getAsyncStackTraceSafe overloads
Synopses
Declared in <folly/debugging/symbolizer/StackTrace.h>
Capture the current async stack trace into fa, async‐signal‐safely.
template<size_t N>
bool
getAsyncStackTraceSafe(FrameArray<N>& fa);
Get the current async stack trace into addresses, which has room for at least maxAddresses frames. If no async operation is progress, then this will write 0 frames.
ssize_t
getAsyncStackTraceSafe(
uintptr_t* addresses,
size_t maxAddresses);
Return Value
-
true on success, false on failure.
-
The number of frames written, or ‐1 on failure.
Parameters
Name |
Description |
fa |
The frame array to fill. |
addresses |
Output buffer for the captured frame addresses. |
maxAddresses |
Capacity of the addresses buffer, in frames. |
Created with MrDocs