Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Android Studio 3.0 profilerハンズオン

zaki50
October 09, 2017

Android Studio 3.0 profilerハンズオン

zaki50

October 09, 2017
Tweet

More Decks by zaki50

Other Decks in Technology

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