Skip to content

Commit 9f7e785

Browse files
authored
add doc for scroll_smoothness metrics (flutter#72479)
1 parent a05c158 commit 9f7e785

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

dev/benchmarks/complex_layout/test/measure_scroll_smoothness.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,11 @@ Future<void> main() async {
212212
/// response.
213213
///
214214
/// The returned map has keys:
215-
/// `average_abs_jerk`: average for the overall smoothness.
216-
/// `janky_count`: number of frames with `abs_jerk` larger than 0.5.
215+
/// `average_abs_jerk`: average for the overall smoothness. The smaller this
216+
/// number the more smooth the scrolling is.
217+
/// `janky_count`: number of frames with `abs_jerk` larger than 0.5. The frames
218+
/// that take longer than the frame budget to build are ignored, so increase of
219+
/// this number itself may not represent a regression.
217220
/// `dropped_frame_count`: number of frames that are built longer than 40ms and
218221
/// are not used for smoothness measurement.
219222
/// `frame_timestamp`: the list of the timestamp for each frame, in the time

0 commit comments

Comments
 (0)