tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
own memory usage ?
Hello,
I'm porting a software which manages its own cache, and the cache mamangement
wants to know how much memory it's currently using.
Do we have a way to get, from malloc(3) or from the kernel, to get
self memory usage ? Any example I could use ?
AFAIK getrusage(2) doesn't give us instant memory usage but only statistics
from the start of the process.
--
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
NetBSD: 26 ans d'experience feront toujours la difference
--
Home |
Main Index |
Thread Index |
Old Index