debugProfilePaintsEnabled top-level property

bool debugProfilePaintsEnabled
getter/setter pair

Adds Timeline events for every RenderObject painted.

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

In debug builds, additional information is included in the trace (such as the properties of render objects being painted). 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

See also:


bool debugProfilePaintsEnabled = false;