Namespaces | Macros | Functions
protobuf/third_party/benchmark/src/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 protobuf/third_party/benchmark/src/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 protobuf/third_party/benchmark/src/sysinfo.cc.

◆ strliterallen

#define strliterallen (   str)    (sizeof("" str "") - 1)
xds_interop_client.str
str
Definition: xds_interop_client.py:487
strliterallen
#define strliterallen(str)
Definition: protobuf/third_party/benchmark/src/sysinfo.cc:327
prefix
static const char prefix[]
Definition: head_of_line_blocking.cc:28
len
int len
Definition: abseil-cpp/absl/base/internal/low_level_alloc_test.cc:46


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:33