MySQL 8.1.0
Source Code Documentation
pfs.h
Go to the documentation of this file.
1/* Copyright (c) 2008, 2023, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is also distributed with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have included with MySQL.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License, version 2.0, for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef PFS_H
24#define PFS_H
25
26/**
27 @file storage/perfschema/pfs.h
28 Performance schema instrumentation (declarations).
29*/
30
32
33#define HAVE_PSI_1
34
37
38#include "my_thread.h"
39#include "my_thread_local.h"
40
42
43struct PFS_thread;
44
45/**
46 Entry point to the performance schema implementation.
47 This singleton is used to discover the performance schema services.
48*/
66
67/** Performance schema Thread Local Storage. */
68extern thread_local PFS_thread *THR_PFS;
69
70/* Only Innodb so far */
71#define COUNT_DATA_LOCK_ENGINES 1
72
74extern unsigned int g_data_lock_inspector_count;
75
76#endif
Engine interface, row lock inspector.
Definition: psi_data_lock.h:359
Defines to make different thread packages compatible.
Performance schema instrumentation interface.
Performance schema instrumentation interface.
Specifies macros to define Service Implementations.
thread_local PFS_thread * THR_PFS
Performance schema Thread Local Storage.
Definition: pfs.cc:2221
struct PSI_data_lock_bootstrap pfs_data_lock_bootstrap
Definition: pfs.cc:9840
struct PSI_cond_bootstrap pfs_cond_bootstrap
Entry point to the performance schema implementation.
Definition: pfs.cc:9838
struct PSI_statement_bootstrap pfs_statement_bootstrap
Definition: pfs.cc:9866
struct PSI_rwlock_bootstrap pfs_rwlock_bootstrap
Definition: pfs.cc:9860
PSI_engine_data_lock_inspector * g_data_lock_inspector[]
Definition: pfs.cc:9843
struct PSI_tls_channel_bootstrap pfs_tls_channel_bootstrap
Definition: pfs.cc:9875
struct PSI_stage_bootstrap pfs_stage_bootstrap
Definition: pfs.cc:9864
struct PSI_memory_bootstrap pfs_memory_bootstrap
Definition: pfs.cc:9856
struct PSI_mdl_bootstrap pfs_mdl_bootstrap
Definition: pfs.cc:9854
struct PSI_thread_bootstrap pfs_thread_bootstrap
Definition: pfs.cc:9873
struct PSI_socket_bootstrap pfs_socket_bootstrap
Definition: pfs.cc:9862
void record_main_thread_id()
Definition: pfs.cc:2227
struct PSI_mutex_bootstrap pfs_mutex_bootstrap
Definition: pfs.cc:9858
unsigned int g_data_lock_inspector_count
Definition: pfs.cc:9846
struct PSI_table_bootstrap pfs_table_bootstrap
Definition: pfs.cc:9871
struct PSI_file_bootstrap pfs_file_bootstrap
Definition: pfs.cc:9850
struct PSI_system_bootstrap pfs_system_bootstrap
Definition: pfs.cc:9869
struct PSI_idle_bootstrap pfs_idle_bootstrap
Definition: pfs.cc:9852
struct PSI_error_bootstrap pfs_error_bootstrap
Definition: pfs.cc:9848
struct PSI_transaction_bootstrap pfs_transaction_bootstrap
Definition: pfs.cc:9878
Instrumented thread implementation.
Definition: pfs_instr.h:374
Entry point for the performance schema interface.
Definition: psi_cond.h:45
Entry point for the performance schema interface.
Definition: psi_data_lock.h:81
Entry point for the performance schema interface.
Definition: psi_error.h:58
Entry point for the performance schema interface.
Definition: psi_file.h:65
Entry point for the performance schema interface.
Definition: psi_idle.h:59
Entry point for the performance schema interface.
Definition: psi_mdl.h:67
Entry point for the performance schema interface.
Definition: psi_memory.h:84
Entry point for the performance schema interface.
Definition: psi_mutex.h:45
Entry point for the performance schema interface.
Definition: psi_rwlock.h:52
Entry point for the performance schema interface.
Definition: psi_socket.h:51
Entry point for the performance schema interface.
Definition: psi_stage.h:45
Entry point for the performance schema interface.
Definition: psi_statement.h:45
Entry point for the performance schema interface.
Definition: psi_system.h:59
Entry point for the performance schema interface.
Definition: psi_table.h:59
Entry point for the performance schema interface.
Definition: psi_thread.h:101
Entry point for the performance schema interface.
Definition: psi_tls_channel.h:45
Entry point for the performance schema interface.
Definition: psi_transaction.h:59