InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Android development tutorials

  • Android - Show top processes using adb
  • Android studio keyboard shortcuts
  • Disable sleep during android usb debugging
  • Download apk using AirDroid
  • Enable usb debugging
  • Exerciser monkey tutorial
  • Find top processes by memory/cpu on Android using Adb
  • Find used ports by an app on Android using Adb
  • Install Android 8 on Pixel 2
  • Root Android pixel 2 using Magisk and boot image patching
  • Transfer android apk using adb
  • Using Google analytics SDK v2 for android app real time tracking
  • View Desktop Site
  • adb tutorial
 
  • Home
  • > Tutorials
  • > Android Development

Android – Show top processes using adb

on Nov 4, 2017

To show top 5 processes by cpu

$ adb shell top -m 5 -s cpu

Sample outcome

User 16%, System 3%, IOW 0%, IRQ 0%
User 294 + Nice 0 + Sys 63 + Idle 1439 + IOW 8 + IRQ 0 + SIRQ 0 = 1804

  PID PR CPU% S  #THR     VSS     RSS PCY UID      Name
31732  0  16% S    15 1808356K 650552K  fg u0_a190  com.foo.bar
  529  0   1% S    20 132188K   9312K  fg media    /system/bin/mediaserver
 1411  0   1% S   152 2448952K 158664K  fg system   system_server
  427  0   1% S    16 215528K  11708K  fg system   /system/bin/surfaceflinger
31959  5   0% R     1   3996K   1296K  fg shell    top

To show top 5 processes by mem

$ adb shell top -m 5 -s rss

Suggested posts:

  1. Root Android pixel 2 using Magisk and boot image patching
  2. AngularJS format date using date filter
  3. Mac finder – change search default folder to current folder
  4. Install Android 8 on Pixel 2
  5. curl – some handy commands
  6. Mac terminal – how to close shell on exit
  7. Git log with file names
  8. Python re (regex) replace examples
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Android Development, Mac, Tutorials
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress