#include <llsys.h>
Collaboration diagram for LLCPUInfo:
Public Member Functions | |
LLCPUInfo () | |
void | stream (std::ostream &s) const |
std::string | getCPUString () const |
bool | hasAltivec () const |
bool | hasSSE () const |
bool | hasSSE2 () const |
S32 | getMhz () const |
const std::string & | getFamily () const |
Private Attributes | |
bool | mHasSSE |
bool | mHasSSE2 |
bool | mHasAltivec |
S32 | mCPUMhz |
std::string | mFamily |
std::string | mCPUString |
Definition at line 70 of file llsys.h.
LLCPUInfo::LLCPUInfo | ( | ) |
Definition at line 349 of file llsys.cpp.
References ProcessorInfo::_Ext, ProcessorExtensions::Altivec_Extensions, LLStringBase< char >::convertToF64(), LLFile::fopen(), CProcessor::GetCPUFrequency(), CProcessor::GetCPUInfo(), MAX_STRING, mCPUMhz, mCPUString, mFamily, mHasAltivec, mHasSSE, mHasSSE2, NULL, S32, ProcessorExtensions::SSE2_StreamingSIMD2_Extensions, ProcessorExtensions::SSE_StreamingSIMD_Extensions, CProcessor::strCPUName, ProcessorInfo::strFamily, and LLStringBase< char >::toLower().
std::string LLCPUInfo::getCPUString | ( | ) | const |
Definition at line 439 of file llsys.cpp.
References mCPUString.
Referenced by LLFloaterAbout::LLFloaterAbout(), send_stats(), and write_system_info().
const std::string& LLCPUInfo::getFamily | ( | ) | const [inline] |
Definition at line 84 of file llsys.h.
References mFamily.
Referenced by LLFloaterReporter::gatherReport().
S32 LLCPUInfo::getMhz | ( | ) | const |
Definition at line 434 of file llsys.cpp.
References mCPUMhz.
Referenced by LLFeatureManager::initCPUFeatureMasks().
bool LLCPUInfo::hasAltivec | ( | ) | const |
Definition at line 419 of file llsys.cpp.
References mHasAltivec.
Referenced by main(), and saved_settings_to_globals().
bool LLCPUInfo::hasSSE | ( | ) | const |
Definition at line 424 of file llsys.cpp.
References mHasSSE.
Referenced by saved_settings_to_globals().
bool LLCPUInfo::hasSSE2 | ( | ) | const |
Definition at line 429 of file llsys.cpp.
References mHasSSE2.
Referenced by saved_settings_to_globals().
void LLCPUInfo::stream | ( | std::ostream & | s | ) | const |
Definition at line 444 of file llsys.cpp.
References CPUINFO_BUFFER_SIZE, CProcessor::CPUInfoToText(), LLFile::fopen(), MAX_STRING, mCPUMhz, mCPUString, mHasAltivec, mHasSSE, and mHasSSE2.
Referenced by operator<<().
S32 LLCPUInfo::mCPUMhz [private] |
std::string LLCPUInfo::mCPUString [private] |
std::string LLCPUInfo::mFamily [private] |
bool LLCPUInfo::mHasAltivec [private] |
bool LLCPUInfo::mHasSSE [private] |
bool LLCPUInfo::mHasSSE2 [private] |