MySQL 9.1.0
Source Code Documentation
xcom_statistics.cc File Reference
#include <assert.h>
#include <stdlib.h>
#include "xcom/xcom_profile.h"
#include "my_compiler.h"
#include "xcom/simset.h"
#include "xcom/task.h"
#include "xcom/task_debug.h"
#include "xcom/x_platform.h"
#include "xcom/xcom_statistics.h"
#include "xcom/xcom_vp_str.h"
#include "xdr_gen/xcom_vp.h"

Macros

#define M_F_SZ   19
 
#define M_F_MIDDLE   ((M_F_SZ + 1) / 2)
 
#define M_F_MAX   (M_F_SZ - 1)
 
#define STAT_INTERVAL   10.0
 
#define SWAP_DBL(x, y)
 

Functions

static int qpartition (double *list, int left, int right, int pivot_index)
 
static double qselect (double *list, int left, int right, int k)
 
void add_to_filter (double t)
 
void median_filter_init ()
 
double median_time ()
 

Variables

uint64_t send_count [LAST_OP]
 
uint64_t receive_count [LAST_OP]
 
uint64_t send_bytes [LAST_OP]
 
uint64_t receive_bytes [LAST_OP]
 
static double median_filter [M_F_SZ]
 
static int filter_index = 0
 
static int added = 1
 
static double cached = 0.0
 

Macro Definition Documentation

◆ M_F_MAX

#define M_F_MAX   (M_F_SZ - 1)

◆ M_F_MIDDLE

#define M_F_MIDDLE   ((M_F_SZ + 1) / 2)

◆ M_F_SZ

#define M_F_SZ   19

◆ STAT_INTERVAL

#define STAT_INTERVAL   10.0

◆ SWAP_DBL

#define SWAP_DBL (   x,
 
)
Value:
{ \
double tmp = (x); \
(x) = (y); \
(y) = tmp; \
}

Function Documentation

◆ add_to_filter()

void add_to_filter ( double  t)

◆ median_filter_init()

void median_filter_init ( )

◆ median_time()

double median_time ( )

◆ qpartition()

static int qpartition ( double *  list,
int  left,
int  right,
int  pivot_index 
)
static

◆ qselect()

static double qselect ( double *  list,
int  left,
int  right,
int  k 
)
static

Variable Documentation

◆ added

int added = 1
static

◆ cached

double cached = 0.0
static

◆ filter_index

int filter_index = 0
static

◆ median_filter

double median_filter[M_F_SZ]
static

◆ receive_bytes

uint64_t receive_bytes[LAST_OP]

◆ receive_count

uint64_t receive_count[LAST_OP]

◆ send_bytes

uint64_t send_bytes[LAST_OP]

◆ send_count

uint64_t send_count[LAST_OP]