folly::sweepSuspendedLeafFrames

Apply fn on all suspended leaf frames. Note: Avoid performing async work within fn as it may cause deadlocks.

Synopsis

Declared in <folly/tracing/AsyncStack.h>

void
sweepSuspendedLeafFrames(folly::FunctionRef<void(AsyncStackFrame*)> fn);

Description

This API does nothing in non-debug-builds.

Parameters

NameDescription
fnCallable applied to each suspended leaf frame.