MySQL 8.0.29
Source Code Documentation
pfs_histogram.h File Reference
#include <atomic>
#include "my_compiler.h"
#include "my_inttypes.h"

Go to the source code of this file.

Classes

struct  PFS_histogram
 
struct  PFS_histogram_timers
 

Macros

#define NUMBER_OF_BUCKETS   450
 Number of buckets used in histograms. More...
 

Variables

struct PFS_histogram_timers g_histogram_pico_timers
 Timer values used in histograms. More...
 

Macro Definition Documentation

◆ NUMBER_OF_BUCKETS

#define NUMBER_OF_BUCKETS   450

Number of buckets used in histograms.

Variable Documentation

◆ g_histogram_pico_timers

struct PFS_histogram_timers g_histogram_pico_timers
extern

Timer values used in histograms.

Timer values are expressed in picoseconds.

timer[0] = 0 timer[1] = BUCKET_BASE_TIMER

From then, timer[N+1] = BUCKET_BASE_FACTOR * timer[N]

The last timer is set to infinity.