Functions
usage_timer.cc File Reference
#include "test/cpp/qps/usage_timer.h"
#include <fstream>
#include <sstream>
#include <string>
#include <grpc/support/log.h>
#include <grpc/support/time.h>
Include dependency graph for usage_timer.cc:

Go to the source code of this file.

Functions

static void get_cpu_usage (unsigned long long *total_cpu_time, unsigned long long *idle_cpu_time)
 
static void get_resource_usage (double *utime, double *stime)
 

Function Documentation

◆ get_cpu_usage()

static void get_cpu_usage ( unsigned long long total_cpu_time,
unsigned long long idle_cpu_time 
)
static

Definition at line 55 of file usage_timer.cc.

◆ get_resource_usage()

static void get_resource_usage ( double *  utime,
double *  stime 
)
static

Definition at line 43 of file usage_timer.cc.



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