Android Studio 3.0 profilerハンズオン

358791a9c91e7615ffe62c7c6e02e470?s=47 zaki50
October 09, 2017

Android Studio 3.0 profilerハンズオン

358791a9c91e7615ffe62c7c6e02e470?s=128

zaki50

October 09, 2017
Tweet

Transcript

  1. AS 3.0 Profiler ϋϯζΦϯ DevFest Tokyo 2017 YAMAZAKI Makoto (@zaki50)

  2. ϋϯζΦϯͷ಺༰ • CPUϓϩϑΝΠϦϯά • ϝϞϦʔϓϩϑΝΠϦϯά • ωοτϫʔΫϓϩϑΝΠϦϯά AS 3.0Ͱಋೖ͞ΕͨAndroid ProfilerͷػೳΛ࣮ࡍʹ࢖ͬͯΈ·͢

    Clone and import to AS http://bit.ly/devfest_profiling
  3. • ্هϓϩδΣΫτΛϒϥ΢βͰ։͖git clone • Android StudioʹΠϯϙʔτ • ΤϛϡϨʔλʔ΋͘͠͸࣮ػͰ࣮ߦ http://bit.ly/devfest_profiling

  4. ΤϛϡϨʔλʔͷ৔߹ Play Storeͳ͠ Oreoਪ঑

  5. Clone and import to AS http://bit.ly/devfest_profiling

  6. CPUৄࡉ Clone and import to AS http://bit.ly/devfest_profiling

  7. Memoryৄࡉ Clone and import to AS http://bit.ly/devfest_profiling

  8. Networkৄࡉ Clone and import to AS http://bit.ly/devfest_profiling

  9. ΠϯϙʔτͰ͖·͔ͨ͠ʁ Clone and import to AS http://bit.ly/devfest_profiling

  10. ΞϓϦͷઆ໌

  11. Advanced Profiling༗ޮԽ OreoͰ͸ෆཁ

  12. SystraceʹΑΔνΣοΫ

  13. Systraceͷ࢖͍ํ $ python systrace.py --time=5 -o trace.html sched gfx view

    wm $ python systrace.py --set-tags=gfx,view,wm $ adb shell stop $ adb shell start $ python systrace.py --cpu-freq --cpu-load --time=5 -o trace.html Android 4.3Ҏ߱ Android 4.2Ҏલ <android-sdk>/platform-tools/systrace ʹଘࡏ͢ΔίϚϯυϥΠϯπʔϧ ཁPython ࢀߟ: https://developer.android.com/studio/profile/systrace.html
  14. https://developer.android.com/studio/preview/ features/android-profiler.html https://developer.android.com/studio/profile/ systrace.html Analyzing UI Performance with Systrace Android

    Profiler in Android Studio 3.0