Namespaces | Macros | Functions
sysinfo.cc File Reference
#include "sysinfo.h"
#include "internal_macros.h"
#include <fcntl.h>
#include <sys/resource.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <cerrno>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <limits>
#include <mutex>
#include "arraysize.h"
#include "check.h"
#include "cycleclock.h"
#include "log.h"
#include "sleep.h"
#include "string_util.h"
Include dependency graph for sysinfo.cc:

Go to the source code of this file.

Namespaces

 benchmark
 

Macros

#define memprefix(str, len, prefix)
 
#define strliterallen(str)   (sizeof("" str "") - 1)
 

Functions

bool benchmark::CpuScalingEnabled ()
 
double benchmark::CyclesPerSecond (void)
 
int benchmark::NumCPUs (void)
 

Macro Definition Documentation

◆ memprefix

#define memprefix (   str,
  len,
  prefix 
)
Value:
((((len) >= strliterallen(prefix)) && \
std::memcmp(str, prefix, strliterallen(prefix)) == 0) \
: nullptr)

Definition at line 330 of file sysinfo.cc.

◆ strliterallen

#define strliterallen (   str)    (sizeof("" str "") - 1)

Definition at line 327 of file sysinfo.cc.

prefix
static const char prefix[]
Definition: test_pair_ipc.cpp:26
update_failure_list.str
str
Definition: update_failure_list.py:41
len
int len
Definition: php/ext/google/protobuf/map.c:206
strliterallen
#define strliterallen(str)
Definition: sysinfo.cc:327


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:04