LLMemoryInfo Class Reference

Class to query the memory subsystem. More...

#include <llsys.h>

List of all members.

Public Member Functions

 LLMemoryInfo ()
 Default constructor.
void stream (std::ostream &s) const
 output text info to s
U32 getPhysicalMemoryKB () const
 Memory size in KiloBytes.
U32 getPhysicalMemoryClamped () const
 Memory size in clamped bytes.


Detailed Description

Class to query the memory subsystem.

Here's how you use an LLMemoryInfo:

LLMemoryInfo info;
llinfos << info << llendl;

Definition at line 101 of file llsys.h.


Constructor & Destructor Documentation

LLMemoryInfo::LLMemoryInfo (  ) 

Default constructor.

Definition at line 516 of file llsys.cpp.


Member Function Documentation

void LLMemoryInfo::stream ( std::ostream &  s  )  const

output text info to s

Definition at line 589 of file llsys.cpp.

References LLFile::fopen(), MAX_STRING, and NULL.

Referenced by operator<<().

Here is the call graph for this function:

Here is the caller graph for this function:

U32 LLMemoryInfo::getPhysicalMemoryKB (  )  const

Memory size in KiloBytes.

Definition at line 538 of file llsys.cpp.

References NULL.

Referenced by getPhysicalMemoryClamped(), LLFloaterAbout::LLFloaterAbout(), send_stats(), and LLAppViewer::writeSystemInfo().

Here is the caller graph for this function:

U32 LLMemoryInfo::getPhysicalMemoryClamped (  )  const

Memory size in clamped bytes.

Memory size in bytes, if total memory is >= 4GB then U32_MAX will be returned.

Definition at line 573 of file llsys.cpp.

References getPhysicalMemoryKB(), and U32_MAX.

Referenced by LLFeatureManager::applyBaseMasks(), LLViewerImageList::calcMaxTextureRAM(), LLViewerImageList::getMaxVideoRamSetting(), LLAppViewer::init(), and LLViewerImage::updateClass().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:52:34 2008 for SecondLife by  doxygen 1.5.5