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