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)

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  10. ΞϓϦͷઆ໌

    View full-size slide

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

    View full-size slide

  12. SystraceʹΑΔνΣοΫ

    View full-size slide

  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Ҏલ
    /platform-tools/systrace ʹଘࡏ͢ΔίϚϯυϥΠϯπʔϧ
    ཁPython
    ࢀߟ: https://developer.android.com/studio/profile/systrace.html

    View full-size slide

  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

    View full-size slide