Re: memory management

New Message Reply Date view Thread view Subject view Author view

From: Yair Kurzion (yair++at++polygon.engr.sgi.com)
Date: 05/03/2001 10:21:15


Hello Michael !

> Are there any performer or c++ functions, in which you can find out
> memory management information such as current page size, # of page swaps
> (dirty pages)
> memory available, memory used by an application?

Try amallinfo and mallinfo for system level information about heap allocation
and shared-arena allocation.

If you are using the DEBUG version of libpf.so (2.4 or later), you can call
pfMemory::getArenaBytesUsed to inquire the exact number of bytes currently
allocated on the Performer shared arena. This number is helpful for
distinguishing memory leaks from memory fragmentation. getArenaBytesUsed
returns a valid number only in the DEBUG libraries for performance reasons.

-yair

-- 
\_________  \_____  \__    \__  \_____         Yair Kurzion
\_________  \_____   \__   \__  \_____         yair++at++sgi.com
       \__     \__   \____\__      \__   http://reality.sgi.com/yair
       \__          \__  \__                Work: (650) 933-6502
       \__          \__   \__               Home: (408) 226-9771
       \__          \__    \__             


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu May 03 2001 - 10:21:19 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.