folly::symbolizer::getAsyncStackTraceSafe

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);
» more...

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);
» more...

Return Value

  • true on success, false on failure.
  • The number of frames written, or -1 on failure.

Parameters

NameDescription
faThe frame array to fill.
addressesOutput buffer for the captured frame addresses.
maxAddressesCapacity of the addresses buffer, in frames.