Friday, November 20, 2009

How to find memory usage on android phone

Use the linux “df” command from the root. You can get into a shell session by using “adb shell” from your host computer’s command window.

Sample usage:

# df

df
/dev: 47172K total, 0K used, 47172K available (block size 4096)
/sqlite_stmt_journals: 4096K total, 0K used, 4096K available (block size 4096)
/system: 65536K total, 65364K used, 172K available (block size 4096)
/data: 65536K total, 9000K used, 56536K available (block size 4096)
/cache: 65536K total, 1156K used, 64380K available (block size 4096)