flutter/dev/benchmarks/platform_views_layout
Jenn Magder a2678be7ad
Platform view devicelab ad banner scroll list real ads (#145239)
Reland https://github.com/flutter/flutter/pull/144745, which was reverted due to a the Android app ads not being set up correctly, crashing on launch: https://github.com/flutter/flutter/pull/145228

Add the missing [`com.google.android.gms.ads.APPLICATION_ID` `meta-data` tag](https://developers.google.com/admob/android/quick-start#import_the_mobile_ads_sdk) to the manifest.

Validated both `platform_views_scroll_perf__timeline_summary` and `platform_views_scroll_perf_impeller__timeline_summary` ran locally on an Android emulator.

Successful presubmit runs:
https://ci.chromium.org/ui/p/flutter/builders/try/Linux_pixel_7pro%20platform_views_scroll_perf__timeline_summary/4/overview
https://ci.chromium.org/ui/p/flutter/builders/try/Linux_pixel_7pro%20platform_views_scroll_perf_impeller__timeline_summary/4/overview

Original commit message:
_________
This benchmark is to measure the platform view performance improvement. 

It is similar to https://github.com/lucalooz/flutter_ads_list_perf

There's still a pending issue https://github.com/flutter/flutter/issues/144339

Fixes https://github.com/flutter/flutter/issues/143534
Fixes https://github.com/flutter/flutter/issues/143257
2024-03-16 05:44:21 +00:00
..
android Platform view devicelab ad banner scroll list real ads (#145239) 2024-03-16 05:44:21 +00:00
ios Platform view devicelab ad banner scroll list real ads (#145239) 2024-03-16 05:44:21 +00:00
lib Platform view devicelab ad banner scroll list real ads (#145239) 2024-03-16 05:44:21 +00:00
test_driver Platform view devicelab ad banner scroll list real ads (#145239) 2024-03-16 05:44:21 +00:00
pubspec.yaml Platform view devicelab ad banner scroll list real ads (#145239) 2024-03-16 05:44:21 +00:00
README.md

platform_views_layout

Scrolling benchmark

To run the scrolling benchmark on a device:

flutter drive --profile test_driver/scroll_perf.dart

Results should be in the file build/platform_views_scroll_perf.timeline_summary.json.

More detailed logs should be in build/platform_views_scroll_perf.timeline.json.

Startup benchmark

To measure startup time on a device:

flutter run --profile --trace-startup

The results should be in the logs.

Additional results should be in the file build/start_up_info.json.