perf: frame_time and slow_frames flap on same-build reruns on emulators and simulators

Đang mở
#356 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
android, flutter, go, ios
Lĩnh vực
performance, testing-qa

Hướng nghiên cứu

Read the performance metric comparison and window handling code, then inspect the tests for frame_time, slow_frames, and cpu on Android emulators and iOS simulators. The issue lists several possible directions, including repeated measurement runs, metric tolerances, or changing which metrics are gated, but does not settle on one. Done means the chosen behavior reduces same-build rerun failures and is covered by tests.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

Observation

On a same-build rerun against a fresh --measure-all baseline, the default gated metrics still flap on an Android emulator (profile build) and an iOS simulator (debug): across three reruns 35 to 57 of ~105 tests failed on frame_time, slow_frames and some cpu; memory and data never failed. Only about 12 of 105 distinct failing (test, metric) pairs recurred in all three runs, so it is noise, not host load. On iOS 5 tests failed on frame_time alone (for example 22.8 ms vs 33-36 ms). --perf-metrics all flaps much more (frame_max, memory_growth, cpu_peak).

Ideas for 0.25

  • Compare the median of N windows (--perf-runs N) instead of one run.
  • A wider default tolerance or a per-metric tolerance for frame metrics.
  • Gate only memory, cpu and data on simulators and emulators by default, and document frame metrics as informational there (see #354 for the fixed 16.7 ms budget).

Smaller wording items

  • In compare mode the message "left out of the baseline" should say "skipped"; windows that span a restart are counted twice (as "no entry" and as "span an app restart").
  • open the app inside a window is not flagged as a restart (on iOS it may only foreground the app).

Scheduled after the stable 0.24.0 release.

Ngôn ngữ chính
Go
Star
6
Fork
3
Merge trung bình
6 giờ 28 phút
Pull request đã merge (30 ngày)
362

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của AlphaWaveSystems/flutter-probe

Tất cả issue của AlphaWaveSystems/flutter-probe

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.