MySQL 26.7.0
Source Code Documentation
mysql::scheduler::Statistics_map Class Reference

Supported statistics: More...

#include <statistics_map.h>

Static Public Member Functions

static bool init_statistics (std::size_t instance_id, std::size_t num_threads=Constants::max_thread_count, bool enable_extended_statistics=false)
 

Static Public Attributes

static constexpr auto thp_queue_size = "thp_queue_size"
 
static constexpr auto thp_task_exec_time = "thp_task_exec_time"
 
static constexpr auto thp_worker_exec_time = "thp_worker_exec_time"
 
static constexpr auto sched_task_exec_time = "sched_task_exec_time"
 
static constexpr auto thp_thread_internal_id = "thp_thread_internal_id"
 

Detailed Description

Supported statistics:

  • thp_queue_size - current size of the thread pool queue size
  • thp_task_exec_time - the number of microseconds spent by workers to execute tasks
  • thp_worker_exec_time - the number of microseconds spent to by thread pool workers on waiting for tasks and execute tasks
  • sched_task_exec_time - the number of microseconds spent by workers to execute tasks, without callback overhead
  • thp_thread_internal_id - thread internal id, set once after thread starts

Member Function Documentation

◆ init_statistics()

bool mysql::scheduler::Statistics_map::init_statistics ( std::size_t  instance_id,
std::size_t  num_threads = Constants::max_thread_count,
bool  enable_extended_statistics = false 
)
static

Member Data Documentation

◆ sched_task_exec_time

constexpr auto mysql::scheduler::Statistics_map::sched_task_exec_time = "sched_task_exec_time"
staticconstexpr

◆ thp_queue_size

constexpr auto mysql::scheduler::Statistics_map::thp_queue_size = "thp_queue_size"
staticconstexpr

◆ thp_task_exec_time

constexpr auto mysql::scheduler::Statistics_map::thp_task_exec_time = "thp_task_exec_time"
staticconstexpr

◆ thp_thread_internal_id

constexpr auto mysql::scheduler::Statistics_map::thp_thread_internal_id = "thp_thread_internal_id"
staticconstexpr

◆ thp_worker_exec_time

constexpr auto mysql::scheduler::Statistics_map::thp_worker_exec_time = "thp_worker_exec_time"
staticconstexpr

The documentation for this class was generated from the following files: