开发者

System API to get process used memory status

开发者 https://www.devze.com 2023-04-07 02:45 出处:网络
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 t

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

精彩评论

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

关注公众号