在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):csimmonds/procrank_linux开源软件地址(OpenSource Url):https://github.com/csimmonds/procrank_linux开源编程语言(OpenSource Language):C 92.9%开源软件介绍(OpenSource Introduction):Display true memory usage using procrankprocrank is a tool commonly used by Android platform developers to find out how much memory is really being used. In fact it is so useful that I was surprised to find that versions that run on normal Linux are so conspicuous by their absence. Hence my port to Linux here. I have tested it so far only on 64-bit x86 and 32-bit ARM, but it should work on any architecture so long as the kernel has pagemap. BuildFor a native build:
To cross compile:
UsageSimply run the program (as root):
Run "./procranc -h" to see the help screen for more options. TheoryIf you are intereted in the background, I have written a blog post on smaps and Pss at http://2net.co.uk/tutorial/procrank Where the source files came fromThis version is from Android Lollipop, which I chose in order to have support for 64-bit kernels as well as 32-bit. The source for procrank is from $AOSP/system/extras/procrank I had to edit procrank.c and add
The source for libpagemap is from $AOSP/system/extras/libpagemap And the source for strlcpy is from $AOSP/bionic/libc/upstream-openbsd/lib/libc/string/strlcpy.c libpagemap |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论