Terminal 開いてから。
./gradlew --profile --offline --rerun-tasks --max-workers=4 assembleDebug
👉 Compose におけるデベロッパーのエルゴノミクス | Jetpack Compose | Android Developers
結果がHTMLで出力されます。

各オプションの意味については以下。
--profile
Generates a high-level performance report in the $buildDir/reports/profile directory. --scan is preferred.--offline
Specifies that the build should operate without accessing network resources.--rerun-tasks
You can force Gradle to execute all tasks ignoring up-to-date checks--max-workers
Sets maximum number of workers that Gradle may use. Default is number of processors.
実行前にクリーンするのがいいそうです。
// On Mac or Linux, run the Gradle wrapper using "./gradlew".
gradlew clean
gradlew --profile --offline --rerun-tasks assembleFlavorDebug
👉 ビルドのプロファイリングを行う | Android デベロッパー | Android Developers
./gradlew clean && ./gradlew --profile --offline --rerun-tasks --max-workers=4 assembleDebug
10回やってみてどうなるか。
ある平均的なぶれのないビルド時間になりますかね。







![ERROR: XMLRPC request failed [code: -32500] RuntimeError: PyPI's XMLRPC API is currently disabled due to unmanageable load and will be deprecated in the near future.](https://i0.wp.com/android.benigumo.com/wp-content/uploads/2022/05/d4106baab59fe6713374ce5ec1c7f81b.png?ssl=1)
