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.
Declared in <folly/tracing/AsyncStack.h>
size_t
getAsyncStackTraceFromInitialFrame(
folly::AsyncStackFrame* initialFrame,
uintptr_t* addresses,
size_t maxAddresses);
The number of frames written.
| Name | Description |
|---|---|
| initialFrame | The frame to start walking the async stack from. |
| addresses | Output buffer receiving the return addresses. |
| maxAddresses | Capacity of the addresses buffer. |