folly::getAsyncStackTraceFromInitialFrame

Given an initial AsyncStackFrame, this will write addresses with the return addresses of the frames in this async stack trace, up to maxAddresses written. This assumes addresses has maxAddresses allocated space available.

Synopsis

Declared in <folly/tracing/AsyncStack.h>

size_t
getAsyncStackTraceFromInitialFrame(
    folly::AsyncStackFrame* initialFrame,
    uintptr_t* addresses,
    size_t maxAddresses);

Return Value

The number of frames written.

Parameters

NameDescription
initialFrameThe frame to start walking the async stack from.
addressesOutput buffer receiving the return addresses.
maxAddressesCapacity of the addresses buffer.