Home
last modified time | relevance | path

Searched refs:GetSysctl (Results 1 – 1 of 1) sorted by relevance

/llvm-project-15.0.7/third-party/benchmark/src/
H A Dsysinfo.cc179 bool GetSysctl(std::string const& Name, std::string* Out) { in GetSysctl() function
189 bool GetSysctl(std::string const& Name, Tp* Out) { in GetSysctl() function
198 bool GetSysctl(std::string const& Name, std::array<Tp, N>* Out) { in GetSysctl() function
298 GetSysctl("hw.cacheconfig", &CacheCounts); in GetCacheSizesMacOSX()
311 if (!GetSysctl(C.name, &val)) continue; in GetCacheSizesMacOSX()
460 if (GetSysctl("hw.ncpu", &NumCPU)) return NumCPU; in GetNumCPUs()
628 if (GetSysctl(FreqStr, &hz)) return hz * 1000000; in GetCPUCyclesPerSecond()
630 if (GetSysctl(FreqStr, &hz)) return hz; in GetCPUCyclesPerSecond()