开发者

System API to get process used memory status

I have a requirement where my running application(On LINUX) will check his used memory status. On the basis of the used status it will do some clean up job. Anyone know any system 开发者_开发百科API to call from C application to know the used memory status on .


Both free(1) and vmstat(8) actually open and parse /proc/meminfo so you could try that.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜