MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pfs_server.h
Go to the documentation of this file.
1 /* Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
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 as published by
5  the Free Software Foundation; version 2 of the License.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  GNU General Public License for more details.
11 
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software Foundation,
14  51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */
15 
16 #ifndef PFS_SERVER_H
17 #define PFS_SERVER_H
18 
24 #ifndef PFS_MAX_MUTEX_CLASS
25  #define PFS_MAX_MUTEX_CLASS 200
26 #endif
27 #ifndef PFS_MAX_RWLOCK_CLASS
28  #define PFS_MAX_RWLOCK_CLASS 30
29 #endif
30 #ifndef PFS_MAX_COND_CLASS
31  #define PFS_MAX_COND_CLASS 80
32 #endif
33 #ifndef PFS_MAX_THREAD_CLASS
34  #define PFS_MAX_THREAD_CLASS 50
35 #endif
36 #ifndef PFS_MAX_FILE_CLASS
37  #define PFS_MAX_FILE_CLASS 50
38 #endif
39 #ifndef PFS_MAX_FILE_HANDLE
40  #define PFS_MAX_FILE_HANDLE 32768
41 #endif
42 #ifndef PFS_MAX_SOCKET_CLASS
43  #define PFS_MAX_SOCKET_CLASS 10
44 #endif
45 #ifndef PFS_MAX_SETUP_ACTOR
46  #define PFS_MAX_SETUP_ACTOR 100
47 #endif
48 #ifndef PFS_MAX_SETUP_OBJECT
49  #define PFS_MAX_SETUP_OBJECT 100
50 #endif
51 #ifndef PFS_MAX_STAGE_CLASS
52  #define PFS_MAX_STAGE_CLASS 150
53 #endif
54 #ifndef PFS_STATEMENTS_STACK_SIZE
55  #define PFS_STATEMENTS_STACK_SIZE 10
56 #endif
57 
59 {
60  long m_table_definition_cache;
61  long m_table_open_cache;
62  long m_max_connections;
63  long m_open_files_limit;
64 };
65 
68 {
70  bool m_enabled;
73  bool m_consumer_events_stages_history_enabled;
74  bool m_consumer_events_stages_history_long_enabled;
75  bool m_consumer_events_statements_current_enabled;
76  bool m_consumer_events_statements_history_enabled;
77  bool m_consumer_events_statements_history_long_enabled;
78  bool m_consumer_events_waits_current_enabled;
79  bool m_consumer_events_waits_history_enabled;
80  bool m_consumer_events_waits_history_long_enabled;
81  bool m_consumer_global_instrumentation_enabled;
82  bool m_consumer_thread_instrumentation_enabled;
83  bool m_consumer_statement_digest_enabled;
84 
87 
199 
202 };
203 
209 
215 struct PSI_bootstrap*
217 
218 void pfs_automated_sizing(PFS_global_param *param);
219 
229 void initialize_performance_schema_acl(bool bootstrap);
230 
232 
238 
242 int add_pfs_instr_to_array(const char* name, const char* value);
243 
248 
249 #endif