This commit is contained in:
Sigurd Meldgaard 2018-07-09 10:55:18 +02:00 committed by GitHub
parent 7ac183794b
commit 064e40d803
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,14 +44,14 @@ enum PerformanceOverlayOption {
/// Displays performance statistics. /// Displays performance statistics.
/// ///
/// The overlay show two time series. The first shows how much time was required /// The overlay shows two time series. The first shows how much time was
/// on this thread to produce each frame. The second shows how much time was /// required on this thread to produce each frame. The second shows how much
/// required on the GPU thread to produce each frame. Ideally, both these values /// time was required on the GPU thread to produce each frame. Ideally, both
/// would be less than the total frame budget for the hardware on which the app /// these values would be less than the total frame budget for the hardware on
/// is running. For example, if the hardware has a screen that updates at 60 Hz, /// which the app is running. For example, if the hardware has a screen that
/// each thread should ideally spend less than 16ms producing each frame. This /// updates at 60 Hz, each thread should ideally spend less than 16ms producing
/// ideal condition is indicated by a green vertical line for each thread. /// each frame. This ideal condition is indicated by a green vertical line for
/// Otherwise, the performance overlay shows a red vertical line. /// each thread. Otherwise, the performance overlay shows a red vertical line.
/// ///
/// The simplest way to show the performance overlay is to set /// The simplest way to show the performance overlay is to set
/// [MaterialApp.showPerformanceOverlay] or [WidgetsApp.showPerformanceOverlay] /// [MaterialApp.showPerformanceOverlay] or [WidgetsApp.showPerformanceOverlay]