CPU usage per application in android

后端 未结 8 1414
情歌与酒
情歌与酒 2020-12-23 11:41

I am new for android programming.How can we get CPU usage per application in android? your help will be more helpful

相关标签:
8条回答
  • 2020-12-23 12:08

    Use adb Commands:

    adb shell top -m 10
    
    0 讨论(0)
  • 2020-12-23 12:12

    Go to Settings -> Developer Tools -> Show CPU Usage

    Then run the app

    EDIT: This has to be done in the app. If you are reading this in 2019, use CPU Profiler

    0 讨论(0)
  • 2020-12-23 12:13

    You can use app to access these kinds of information. Such as Simple System Monitor, Simple System Monitor.

    0 讨论(0)
  • 2020-12-23 12:14

    two approaches:

    • adb shell "top -n 1"
    • adb shell dumpsys cpuinfo
    0 讨论(0)
  • 2020-12-23 12:20

    there are a few ways.

    the first one is to open the CPU usage in the Jelly Bean developer options.

    the second option is to run the adb shell top -m 10 function in your windows Android SDK folder or ./adb shell top -m 10 in your Mac/Linux.

    0 讨论(0)
  • 2020-12-23 12:22

    Source: Technique for indentifying android app CPU usage

    • Linux:

      adb shell top -m 10 | grep packagename

    • Windows:

      adb shell top -m 10 | FINDSTR packagename

    0 讨论(0)
提交回复
热议问题