Redian新闻
>
如何大略计算一个程序的内存使用量?
avatar
如何大略计算一个程序的内存使用量?# Unix - 噫吁兮,危乎高哉
b*y
1
记得有个命令可以直接用,猛的想不起来了,哪位提醒一下.
Thanks
avatar
w*n
2
try getrusage().

【在 b***y 的大作中提到】
: 记得有个命令可以直接用,猛的想不起来了,哪位提醒一下.
: Thanks

avatar
w*n
3
you can also go to /proc ( maybe, not sure). One directory maps one process.

【在 w******n 的大作中提到】
: try getrusage().
avatar
s*s
4
top
the SIZE colume
and ps command

【在 b***y 的大作中提到】
: 记得有个命令可以直接用,猛的想不起来了,哪位提醒一下.
: Thanks

avatar
b*y
5
i tried this one b4, but my program runs so fast, no enough time to see the
size in top.
I find one in linux, memprof. that works for my program.
Thanks.

【在 s**s 的大作中提到】
: top
: the SIZE colume
: and ps command

avatar
m*m
6
size yourfilename

【在 b***y 的大作中提到】
: i tried this one b4, but my program runs so fast, no enough time to see the
: size in top.
: I find one in linux, memprof. that works for my program.
: Thanks.

avatar
o*d
7
filesize != the size of the address space

【在 m********m 的大作中提到】
: size yourfilename
avatar
t*q
8
top or gtop

【在 o******d 的大作中提到】
: filesize != the size of the address space
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。