Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!sdd.hp.com!elroy.jpl.nasa.gov!aristotle!pjs From: pjs@aristotle.JPL.NASA.gov (Peter Scott) Newsgroups: comp.windows.x Subject: Memory used widget? Message-ID: <1990Aug29.184351.21268@elroy.jpl.nasa.gov> Date: 29 Aug 90 18:43:51 GMT Sender: news@elroy.jpl.nasa.gov (Usenet) Reply-To: pjs@aristotle.jpl.nasa.gov Followup-To: comp.windows.x Organization: Jet Propulsion Laboratory, NASA/Caltech Lines: 13 Nntp-Posting-Host: aristotle.jpl.nasa.gov When developing an application it would be extremely useful to be able to stick a label in one corner which would show the instantaneous amount of memory in bytes used by the application. Then memory leaks would be easier to spot. Has anyone written such a widget? Failing that, since I've had much more exposure to X than to Unix system calls, if someone would point me towards the necessary code to return the memory currently used by an application, I'll have a go at it myself. -- This is news. This is your | Peter Scott, NASA/JPL/Caltech brain on news. Any questions? | (pjs@aristotle.jpl.nasa.gov)