Classes | Public Types | Static Public Member Functions | Public Attributes | Private Member Functions | List of all members
benchmark::CPUInfo Struct Reference

#include <benchmark.h>

Classes

struct  CacheInfo
 

Public Types

enum  Scaling { UNKNOWN, ENABLED, DISABLED }
 

Static Public Member Functions

static const CPUInfoGet ()
 

Public Attributes

std::vector< CacheInfocaches
 
double cycles_per_second
 
std::vector< double > load_avg
 
int num_cpus
 
Scaling scaling
 

Private Member Functions

 BENCHMARK_DISALLOW_COPY_AND_ASSIGN (CPUInfo)
 
 CPUInfo ()
 

Detailed Description

Definition at line 1353 of file benchmark/include/benchmark/benchmark.h.

Member Enumeration Documentation

◆ Scaling

Enumerator
UNKNOWN 
ENABLED 
DISABLED 

Definition at line 1361 of file benchmark/include/benchmark/benchmark.h.

Constructor & Destructor Documentation

◆ CPUInfo()

benchmark::CPUInfo::CPUInfo ( )
private

Definition at line 713 of file benchmark/src/sysinfo.cc.

Member Function Documentation

◆ BENCHMARK_DISALLOW_COPY_AND_ASSIGN()

benchmark::CPUInfo::BENCHMARK_DISALLOW_COPY_AND_ASSIGN ( CPUInfo  )
private

◆ Get()

const CPUInfo & benchmark::CPUInfo::Get ( )
static

Definition at line 708 of file benchmark/src/sysinfo.cc.

Member Data Documentation

◆ caches

std::vector<CacheInfo> benchmark::CPUInfo::caches

Definition at line 1370 of file benchmark/include/benchmark/benchmark.h.

◆ cycles_per_second

double benchmark::CPUInfo::cycles_per_second

Definition at line 1369 of file benchmark/include/benchmark/benchmark.h.

◆ load_avg

std::vector<double> benchmark::CPUInfo::load_avg

Definition at line 1371 of file benchmark/include/benchmark/benchmark.h.

◆ num_cpus

int benchmark::CPUInfo::num_cpus

Definition at line 1367 of file benchmark/include/benchmark/benchmark.h.

◆ scaling

Scaling benchmark::CPUInfo::scaling

Definition at line 1368 of file benchmark/include/benchmark/benchmark.h.


The documentation for this struct was generated from the following files:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:02:57