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 99 of file llsys.h.

Constructor & Destructor Documentation

LLMemoryInfo::LLMemoryInfo (  ) 

Default constructor.

Definition at line 487 of file llsys.cpp.

Member Function Documentation

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 544 of file llsys.cpp.

References getPhysicalMemoryKB(), and U32_MAX.

Referenced by LLViewerImageList::calcMaxTextureRAM(), LLViewerImageList::getMaxVideoRamSetting(), LLFeatureManager::initCPUFeatureMasks(), and LLViewerImage::updateClass().

U32 LLMemoryInfo::getPhysicalMemoryKB (  )  const

Memory size in KiloBytes.

Definition at line 509 of file llsys.cpp.

References NULL.

Referenced by getPhysicalMemoryClamped(), LLFloaterAbout::LLFloaterAbout(), send_stats(), and write_system_info().

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

output text info to s

Definition at line 560 of file llsys.cpp.

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

Referenced by operator<<().

The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:30 2010 for Second Life Viewer by  doxygen 1.4.7