LoginSignup
12
9

More than 3 years have passed since last update.

ChromeでAndroidアプリのビルドのトレースする手順

Posted at

Google I/Oであったやつです。
https://youtu.be/LFRCzsD7UhY?t=1958
image.png

手順

Android Studioでの手順

Preferenceから-Pandroid.enableProfileJson=trueをGradleのオプションに追加
image.png

この状態で、普通にビルドするとプロジェクトルート/build/android-profile/profile-2019-05-17-10-57-32-744.jsonみたいなファイルができます。

Chromeでの手順

Chromeで新しいタブを開いて、メニュー -> その他のツール -> デベロッパーツールを開く。
Performanceタブを開いて、このボタンをクリックするとProfileの選択画面になるので、そこで先程のjsonファイルを選択する
image.png

これで見れました。

12
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
9