bluesky-social / social-app

The Bluesky Social application for Web, iOS, and Android
https://bsky.app
MIT License
11.82k stars 1.51k forks source link

Add Profiler build for Android #6510

Closed gaearon closed 3 days ago

gaearon commented 3 days ago

This adds yarn android:profile which produces a prod-like build that logs each React render phase. To read the log output, you'll need to connect with Android Studio and open logcat.

Example output:

Screenshot 2024-11-19 at 00 38 27

Test Plan

Verify yarn android:prod does not produce these logs.

Verify yarn android:profile does.

Verify that these two modes are independent and nothing's cached between them. I'm actually having trouble with caching here, but assuming we always build real production builds from CI, this should be fine. I've asked Expo folks to look at this. It seems like editing the metro.config.js file is enough to bust the cache manually.

Does not affect iOS or web (on iOS, we don't set BSKY_PROFILE, and for web we don't use Metro).

github-actions[bot] commented 3 days ago
Old size New size Diff
8.05 MB 8.05 MB 122 B (0.00%)