Firefox OS/Performance/Memory/ADB Tools

From MozillaWiki
Jump to navigation Jump to search

b2g-ps

The b2g-ps command performs a simple process listing and filter out all non-b2g processes. While it does not provide too much memory information, it is usable on production devices where root is not available.

The command provides:

  • The virtual address space used as VSIZE
  • The resident set size as RSS
bkelly@lenir:/srv/gaia-master$ adb shell b2g-ps
APPLICATION      USER     PID   PPID  VSIZE  RSS     WCHAN    PC         NAME
b2g              root      292   1     183060 76256 ffffffff b6f0563c S /system/b2g/b2g
(Nuwa)           root      815   292   53304  20988 ffffffff b6ea963c S /system/b2g/plugin-container
Homescreen       u0_a958   958   815   72000  27420 ffffffff b6ea963c S /system/b2g/plugin-container
Communications   u0_a1303  1303  815   73388  26864 ffffffff b6ea963c S /system/b2g/plugin-container
Marketplace      u0_a1461  1461  815   89636  39760 ffffffff b6ea963c S /system/b2g/plugin-container
(Preallocated a  u0_a1512  1512  815   60476  18360 ffffffff b6ea963c S /system/b2g/plugin-container

b2g-info

/proc/meminfo