MySQL 8.3.0
Source Code Documentation
kv_store_stats.h
Go to the documentation of this file.
1/* Copyright (c) 2020, 2023, Oracle and/or its affiliates.
2
3This program is free software; you can redistribute it and/or modify it under
4the terms of the GNU General Public License, version 2.0, as published by the
5Free Software Foundation.
6
7This program is also distributed with certain software (including but not
8limited to OpenSSL) that is licensed under separate terms, as designated in a
9particular file or component or in included license documentation. The authors
10of MySQL hereby grant you an additional permission to link the program and
11your derivative works with the separately licensed software that they have
12included with MySQL.
13
14This program is distributed in the hope that it will be useful, but WITHOUT
15ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
17for more details.
18
19You should have received a copy of the GNU General Public License along with
20this program; if not, write to the Free Software Foundation, Inc.,
2151 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23/** @file storage/temptable/include/temptable/kv_store_stats.h
24TempTable key-value store stats description. */
25
26#ifndef TEMPTABLE_KV_STORE_STATS_H
27#define TEMPTABLE_KV_STORE_STATS_H
28
29#include <thread>
30
31namespace temptable {
32
33/** This is a small convenience POD-like type which describes what kind of
34 * details we are interested in when monitoring the behavior of Key_value_store.
35 * Details directly correlate to the properties of the underlying data-structure
36 * that Key_value_store is using.
37 * */
39 enum class Event { EMPLACE, ERASE };
41 size_t size;
47};
48
49} // namespace temptable
50
51#endif /* TEMPTABLE_KV_STORE_STATS_H */
libevent global state management
Definition: http_common.h:59
Definition: allocator.h:44
This is a small convenience POD-like type which describes what kind of details we are interested in w...
Definition: kv_store_stats.h:38
size_t size
Definition: kv_store_stats.h:41
size_t bucket_count
Definition: kv_store_stats.h:42
std::thread::id thread_id
Definition: kv_store_stats.h:46
double load_factor
Definition: kv_store_stats.h:43
size_t max_bucket_count
Definition: kv_store_stats.h:45
Event event
Definition: kv_store_stats.h:40
double max_load_factor
Definition: kv_store_stats.h:44
unsigned long id[MAX_DEAD]
Definition: xcom_base.cc:509