#include "base/system/sys_info.h"
#include <stddef.h>
#include <stdint.h>
#include <algorithm>
#include <limits>
#include <sstream>
#include "base/check.h"
#include "base/files/file_util.h"
#include "base/lazy_instance.h"
#include "base/notreached.h"
#include "base/numerics/safe_conversions.h"
#include "base/process/process_metrics.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/system/sys_info_internal.h"
#include "build/build_config.h"
namespace {
uint64_t AmountOfMemory(int pages_name) { … }
uint64_t AmountOfPhysicalMemory() { … }
base::LazyInstance<
base::internal::LazySysInfoValue<uint64_t, AmountOfPhysicalMemory>>::Leaky
g_lazy_physical_memory = …;
}
namespace base {
uint64_t SysInfo::AmountOfPhysicalMemoryImpl() { … }
uint64_t SysInfo::AmountOfAvailablePhysicalMemoryImpl() { … }
uint64_t SysInfo::AmountOfAvailablePhysicalMemory(
const SystemMemoryInfoKB& info) { … }
std::string SysInfo::CPUModelName() { … }
#if !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_ANDROID)
SysInfo::HardwareInfo SysInfo::GetHardwareInfoSync() { … }
#endif
}