开发者

How to dump android meminfo into a file?

I'm taking a detailed look into the resources of my apps. Unfortunatly when I execute the adb shell dumpsys meminfo, it overflows my 开发者_运维知识库terminal. Anyone know how I can instead of viewing the dump in terminal, have it print into a file so I can pull and view it in a text editor?


Redirect the output - adb shell dumpsys meminfo > meminfo.txt


Redirect it using > operator:

adb shell dumpsys meminfo >meminfo.txt

Alternatively, you can pipe it directly to a viewer such as less:

adb shell dumpsys meminfo | less


In addition to redirecting, you can just pipe it through more:

adb shell dumpsys meminfo | more

Then you can just page through the output.

Or, honestly, make your terminal buffer larger so you can scroll back through it. Having a terminal where you can't even scroll back through the output of this command seems pretty ghastly. :)


use dumpsys -l and check if power option is there. Its not possible that no power state is maintained.

either you dont have write permission in the directory you are trying to create on device. better use adb shell dumpsys power and it comes out to your pc rather than on device memory

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜