folly::activateAsyncStackFrame

Activate the specified AsyncStackFrame on the specified AsyncStackRoot, setting it as the current 'topFrame'.

Synopsis

Declared in <folly/tracing/AsyncStack.h>

void
activateAsyncStackFrame(
    folly::AsyncStackRoot& root,
    folly::AsyncStackFrame& frame) noexcept;

Description

The AsyncStackRoot must be the current thread's top-most AsyncStackRoot and it must not currently have an active 'topFrame'.

This is typically called immediately prior to executing a callback that resumes the async operation represented by 'frame'.

Parameters

NameDescription
rootThe current thread's top-most stack root.
frameThe frame to activate as the top frame.