Skip to content

[devicelab] Enable Vulkan GPU tracing by default on Android Impeller PerfTests - #196822

Merged
auto-submit[bot] merged 3 commits into
flutter:masterfrom
andywolff:devicelab-vulkan-gpu-tracing
Nov 20, 2026
Merged

auto-submit[bot] merged 3 commits into
flutter:masterfrom
andywolff:devicelab-vulkan-gpu-tracing

Conversation

@andywolff

@andywolff andywolff commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #196096

Depends on #196339.

Android devicelab benchmarks that rely on Impeller being enabled by default were not turning on Vulkan GPU tracing. The manifest setup in PerfTest still treated enableImpeller as false when omitted, a leftover from when Skia was the default on Android. Benchmarks like cubic_bezier_perf__timeline_summary skipped injecting EnableVulkanGPUTracing into AndroidManifest.xml as a result.

PerfTest now enables Vulkan GPU tracing on Android whenever Impeller is not explicitly disabled, scoped to Android devices so iOS and desktop runs do not touch AndroidManifest.xml. The other manifest flags stay under the existing explicit-opt-in gate.

Vulkan GPU tracing and the GPU frame time score keys are disabled for PerfTest.e2e, OpenGL ES runs, and the multi-surface platform-view benchmarks. PerfTest.e2e does not report GPU frame times., and multi-surface tracing doesn't work right yet (#196834).

I expect the performance dashboard will start showing the frame time metrics after this PR merges.

Pre-launch Checklist

@andywolff
andywolff force-pushed the devicelab-vulkan-gpu-tracing branch from d6d4035 to a37db9f Compare November 19, 2026 21:29
@andywolff
andywolff marked this pull request as ready for review November 19, 2026 21:37
@andywolff
andywolff requested a review from gaaclarke November 19, 2026 21:38

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds an enableVulkanGPUTracing option to performance tests, enabling Vulkan GPU tracing in AndroidManifest.xml by default on Android when Impeller is active. It also updates GPU frame time recording conditions and adds corresponding unit tests. Feedback on the changes identifies that using enableImpeller ?? false for other Impeller-specific manifest modifications prevents them from being applied when enableImpeller is null, and suggests changing this to enableImpeller ?? true to align with Impeller being enabled by default on Android.

Comment thread dev/devicelab/lib/tasks/perf_tests.dart Resolved

@gaaclarke gaaclarke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good modulo a cleanup request

Comment thread dev/devicelab/lib/tasks/perf_tests.dart Outdated
Comment on lines +1530 to +1533
final bool recordGPUFrameTime =
recordGPU &&
(!isAndroidDevice ||
((enableImpeller ?? true) && (enableVulkanGPUTracing || (forceOpenGLES ?? false))));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a beast to parse, can you pull out subexpressions to make it easier. Gemini suggests:

final bool isImpellerEnabled = enableImpeller ?? true;
final bool isGlesTracingForced = forceOpenGLES ?? false;

// Tracing on Android requires Impeller combined with either Vulkan or forced GLES.
final bool isAndroidGPUTracingActive =
    isImpellerEnabled && (enableVulkanGPUTracing || isGlesTracingForced);

final bool recordGPUFrameTime =
    recordGPU && (!isAndroidDevice || isAndroidGPUTracingActive);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah this got a bit out of hand. Done

@andywolff
andywolff requested a review from gaaclarke November 19, 2026 22:03
…gpu-tracing

# Conflicts:
#	dev/devicelab/lib/tasks/perf_tests.dart
#	dev/devicelab/test/perf_tests_test.dart

@gaaclarke gaaclarke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@andywolff andywolff added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 20, 2026
@auto-submit
auto-submit Bot added this pull request to the merge queue Nov 20, 2026
Merged via the queue into flutter:master with commit 15cc2a4 Nov 20, 2026
21 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Nov 20, 2026
auto-submit Bot pushed a commit to flutter/packages that referenced this pull request Nov 21, 2026
flutter/flutter@b34b017...5423f94

2026-11-21 [email protected] Make an Impeller render target from a Vulkan backing store (flutter/flutter#193003)
2026-11-21 [email protected] Persist the vulkan shader cache on teardown (flutter/flutter#197017)
2026-11-21 [email protected] [flutter_tools] Preserve rolling log buffer for Chromium crash diagnostics (flutter/flutter#196037)
2026-11-21 [email protected] Roll Skia from 8845aecd8c53 to 39e0ad394168 (2 revisions) (flutter/flutter#197094)
2026-11-21 [email protected] Adds redirect for listen package in api.flutter.dev (flutter/flutter#197068)
2026-11-21 [email protected] Roll Dart SDK from c6857d58f0ec to fc86f5a42779 (1 revision) (flutter/flutter#197086)
2026-11-20 [email protected] iOS: Discard pending platform view disposals on reset (flutter/flutter#197026)
2026-11-20 [email protected] Tolerate a missing flutter/service_worker handler in the web first-frame notification (flutter/flutter#196329)
2026-11-20 [email protected] Roll Skia from 9aafbb357743 to 8845aecd8c53 (2 revisions) (flutter/flutter#197080)
2026-11-20 [email protected] Prevent crash in tessellator with extreme radii (flutter/flutter#196648)
2026-11-20 [email protected] Windows: in the flutter tool, always close the file handle in _download even when an HTTP request fails so that it is not left open and becomes undeletable (flutter/flutter#197061)
2026-11-20 [email protected] Roll Skia from b61640825c5b to 9aafbb357743 (7 revisions) (flutter/flutter#197066)
2026-11-20 [email protected] Swap dependabot reviewers (flutter/flutter#196995)
2026-11-20 [email protected] [iOS] Hide UIScrollEdgeEffect on FlutterSemanticsScrollView and scroll-to-top UIScrollView on iOS 26+ (flutter/flutter#195356)
2026-11-20 [email protected] [devicelab] Enable Vulkan GPU tracing by default on Android Impeller PerfTests (flutter/flutter#196822)
2026-11-20 [email protected] Roll Dart SDK from 3b5f45d812f8 to c6857d58f0ec (1 revision) (flutter/flutter#197063)
2026-11-20 [email protected] [flutter_tools] Delete flutter.version.json when switching channels (flutter/flutter#196943)
2026-11-20 [email protected] Update desktop TESTOWNERS (flutter/flutter#196930)
2026-11-20 [email protected] [web] Release CanvasKit WebGL contexts and surfaces when a view is removed (flutter/flutter#196816)
2026-11-20 [email protected] [Linux] Hide libunwind symbols in libflutter_linux_gtk.so (flutter/flutter#196451)
2026-11-20 [email protected] Roll Skia from a1edf5c2ea5c to b61640825c5b (1 revision) (flutter/flutter#197058)
2026-11-20 [email protected] [flutter_tools] Update --web-content-hash serving tip to cover assets and canvaskit (flutter/flutter#196908)
2026-11-20 [email protected] Send a semantics update when only the identifier changes (flutter/flutter#196460)
2026-11-20 [email protected] Roll Packages from 81b7c44 to 898818d (11 revisions) (flutter/flutter#197056)

If this roll has caused a breakage, revert this CL and set the roller
to dry run mode using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GPU frame time metrics in benchmarks are measured incorrectly

2 participants