MySQL 9.1.0
Source Code Documentation
counter_indexer_t< Type, N > Struct Template Reference

Use the result of my_timer_cycles(), which mainly uses RDTSC for cycles, to index into the counter array. More...

#include <ut0counter.h>

Inheritance diagram for counter_indexer_t< Type, N >:
[legend]

Public Types

enum  { fast = 1 }
 Default constructor/destructor should be OK. More...
 

Static Public Member Functions

static size_t get_rnd_index () 1
 
- Static Public Member Functions inherited from generic_indexer_t< ulint, 1 >
static size_t offset (size_t index) 1
 Default constructor/destructor should be OK. More...
 

Detailed Description

template<typename Type = ulint, int N = 1>
struct counter_indexer_t< Type, N >

Use the result of my_timer_cycles(), which mainly uses RDTSC for cycles, to index into the counter array.

See the comments for my_timer_cycles()

Member Enumeration Documentation

◆ anonymous enum

template<typename Type = ulint, int N = 1>
anonymous enum

Default constructor/destructor should be OK.

Enumerator
fast 

Member Function Documentation

◆ get_rnd_index()

template<typename Type = ulint, int N = 1>
static size_t counter_indexer_t< Type, N >::get_rnd_index ( )
inlinestatic
Returns
result from RDTSC or similar functions.

The documentation for this struct was generated from the following file: