diff options
author | Jacek Antonelli | 2008-08-15 23:45:07 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:07 -0500 |
commit | 8465910c79b8e746e04fd581cca2d60399e569b9 (patch) | |
tree | f43fec3e83c46e0d6190dca923d6fb268b52ffdd /linden/indra/llcommon/llsys.h | |
parent | Second Life viewer sources 1.18.2.1 (diff) | |
download | meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.zip meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.tar.gz meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.tar.bz2 meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.tar.xz |
Second Life viewer sources 1.18.3.2-RC
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 | ||