debugProfilePaintsEnabled top-level property Null safety

bool debugProfilePaintsEnabled
read / write

Adds dart:developer.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 flutter.dev/docs/perf/rendering.

See also:

Implementation

bool debugProfilePaintsEnabled = false;