Displaying the performance overlay

You can toggle display of the performance overlay as follows:

Using the Flutter inspector

From the command line

Programmatically

Using the Flutter inspector

The easiest way to enable the PerformanceOverlay widget is
from the Flutter inspector, which is available in the
Inspector view in DevTools. Simply click the
Performance Overlay button to toggle the overlay
on your running app.

From the command line

Toggle the performance overlay using the P key from
the command line.

Programmatically

To enable the overlay programmatically, see
Performance overlay, a section in the
Debugging Flutter apps programmatically page.

Identifying problems in the UI graph

If the performance overlay shows red in the UI graph,
start by profiling the Dart VM, even if the GPU graph
also shows red.

Identifying problems in the GPU graph