debugPrintScheduleFrameStacks top-level property

bool debugPrintScheduleFrameStacks
read / write

Log the call stacks that cause a frame to be scheduled.

This is called whenever SchedulerBinding.scheduleFrame schedules a frame. This can happen for various reasons, e.g. when a Ticker or AnimationController is started, or when RenderObject.markNeedsLayout is called, or when State.setState is called.

To get a stack specifically when widgets are scheduled to be built, see debugPrintScheduleBuildForStacks.

Implementation

bool debugPrintScheduleFrameStacks = false