Home
last modified time | relevance | path

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

/third_party/benchmark/src/
H A Dsysinfo.cc180 bool GetSysctl(std::string const& name, std::string* out) { in GetSysctl() function
190 bool GetSysctl(std::string const& name, Tp* out) { in GetSysctl() function
199 bool GetSysctl(std::string const& name, std::array<Tp, N>* out) { in GetSysctl() function
299 GetSysctl("hw.cacheconfig", &cache_counts); in GetCacheSizesMacOSX()
312 if (!GetSysctl(c.name, &val)) continue; in GetCacheSizesMacOSX()
474 if (GetSysctl("hw.ncpu", &num_cpu)) return num_cpu; in GetNumCPUs()
722 if (GetSysctl(freqStr, &hz)) return hz * 1000000; in GetCPUCyclesPerSecond()
724 if (GetSysctl(freqStr, &hz)) return hz; in GetCPUCyclesPerSecond()

Completed in 2 milliseconds