debugProfileLayoutsEnabled top-level property

bool debugProfileLayoutsEnabled
getter/setter pair

Adds Timeline events for every RenderObject layout.

The timing information this flag exposes is not representative of the actual cost of layout, because the overhead of adding timeline events is significant relative to the time each object takes to lay out. However, it can expose unexpected layout behavior in the timeline.

In debug builds, additional information is included in the trace (such as the properties of render objects being laid out). Collecting this data is expensive and further makes these traces non-representative of actual performance. This data is omitted in profile builds.

For more information about performance debugging in Flutter, see flutter.dev/docs/perf/rendering.

See also:

Implementation

bool debugProfileLayoutsEnabled = false;