diff options
Diffstat (limited to 'linden/indra/llcommon/llsys.h')
-rw-r--r-- | linden/indra/llcommon/llsys.h | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/linden/indra/llcommon/llsys.h b/linden/indra/llcommon/llsys.h index 416bd54..66a3465 100644 --- a/linden/indra/llcommon/llsys.h +++ b/linden/indra/llcommon/llsys.h | |||
@@ -89,13 +89,31 @@ private: | |||
89 | std::string mCPUString; | 89 | std::string mCPUString; |
90 | }; | 90 | }; |
91 | 91 | ||
92 | //============================================================================= | ||
93 | // | ||
94 | // CLASS LLMemoryInfo | ||
95 | |||
92 | class LLMemoryInfo | 96 | class LLMemoryInfo |
97 | |||
98 | /*! @brief Class to query the memory subsystem | ||
99 | |||
100 | @details | ||
101 | Here's how you use an LLMemoryInfo: | ||
102 | |||
103 | LLMemoryInfo info; | ||
104 | <br> llinfos << info << llendl; | ||
105 | */ | ||
93 | { | 106 | { |
94 | public: | 107 | public: |
95 | LLMemoryInfo(); | 108 | LLMemoryInfo(); ///< Default constructor |
96 | void stream(std::ostream& s) const; | 109 | void stream(std::ostream& s) const; ///< output text info to s |
97 | 110 | ||
98 | U32 getPhysicalMemory() const; | 111 | U32 getPhysicalMemoryKB() const; ///< Memory size in KiloBytes |
112 | |||
113 | /*! Memory size in bytes, if total memory is >= 4GB then U32_MAX will | ||
114 | ** be returned. | ||
115 | */ | ||
116 | U32 getPhysicalMemoryClamped() const; ///< Memory size in clamped bytes | ||
99 | }; | 117 | }; |
100 | 118 | ||
101 | 119 | ||