美文网首页
Android性能分析维度简要

Android性能分析维度简要

作者: retton | 来源:发表于2017-02-28 10:29 被阅读0次

    CPU

    • top命令查看进程CPU使用情况

    • cat /proc/cpuinfo

    • 获取线程调用栈

      1. kill -3 指定的进程,会生成trace文件在/data/anr/traces.txt,提前设置好该文件的权限信息
      2. Android Studio自带的get Threaddump
    • method trace

    Memory

    1. heap dump
    2. dumpsys meminfo packagename
    3. gc
    4. allocate trace

    文件描述符泄漏

    ulimits
    /proc/${pid}/fd

    IO

    网络

    端口
    netstat
    tcpdump
    iptables

    ANR

    thread dump
    method trace

    UI渲染

    相关文章

      网友评论

          本文标题:Android性能分析维度简要

          本文链接:https://www.haomeiwen.com/subject/etqxgttx.html