MySQL 5.6.14 Source Code Document
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
pfs_events_statements.h
Go to the documentation of this file.
1
/* Copyright (c) 2010, 2011, 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
14
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
15
16
#ifndef PFS_EVENTS_STATEMENTS_H
17
#define PFS_EVENTS_STATEMENTS_H
18
24
#include "
pfs_column_types.h
"
25
#include "
pfs_events.h
"
26
#include "
pfs_digest.h
"
27
28
struct
PFS_thread
;
29
struct
PFS_account
;
30
struct
PFS_user
;
31
struct
PFS_host
;
32
34
struct
PFS_events_statements
:
public
PFS_events
35
{
37
char
m_current_schema_name
[NAME_LEN];
39
uint
m_current_schema_name_length
;
41
char
m_sqltext
[
COL_INFO_SIZE
];
43
uint
m_sqltext_length
;
44
46
ulonglong
m_lock_time
;
47
49
char
m_message_text
[MYSQL_ERRMSG_SIZE+1];
51
uint
m_sql_errno
;
53
char
m_sqlstate
[SQLSTATE_LENGTH];
55
uint
m_error_count
;
57
uint
m_warning_count
;
59
ulonglong
m_rows_affected
;
60
62
ulonglong
m_rows_sent
;
64
ulonglong
m_rows_examined
;
66
ulonglong
m_created_tmp_disk_tables
;
68
ulonglong
m_created_tmp_tables
;
70
ulonglong
m_select_full_join
;
72
ulonglong
m_select_full_range_join
;
74
ulonglong
m_select_range
;
76
ulonglong
m_select_range_check
;
78
ulonglong
m_select_scan
;
80
ulonglong
m_sort_merge_passes
;
82
ulonglong
m_sort_range
;
84
ulonglong
m_sort_rows
;
86
ulonglong
m_sort_scan
;
88
ulonglong
m_no_index_used
;
90
ulonglong
m_no_good_index_used
;
92
PSI_digest_storage
m_digest_storage
;
93
};
94
95
void
insert_events_statements_history
(
PFS_thread
*thread,
PFS_events_statements
*
statement
);
96
void
insert_events_statements_history_long
(
PFS_events_statements
*
statement
);
97
98
extern
bool
flag_events_statements_current
;
99
extern
bool
flag_events_statements_history
;
100
extern
bool
flag_events_statements_history_long
;
101
102
extern
bool
events_statements_history_long_full
;
103
extern
volatile
uint32
events_statements_history_long_index
;
104
extern
PFS_events_statements
*
events_statements_history_long_array
;
105
extern
ulong events_statements_history_long_size;
106
107
int
init_events_statements_history_long
(uint events_statements_history_long_sizing);
108
void
cleanup_events_statements_history_long
();
109
110
void
reset_events_statements_current
();
111
void
reset_events_statements_history
();
112
void
reset_events_statements_history_long
();
113
void
reset_events_statements_by_thread
();
114
void
reset_events_statements_by_account
();
115
void
reset_events_statements_by_user
();
116
void
reset_events_statements_by_host
();
117
void
reset_events_statements_global
();
118
void
aggregate_account_statements(
PFS_account
*account);
119
void
aggregate_user_statements(
PFS_user
*user);
120
void
aggregate_host_statements(
PFS_host
*host);
121
122
#endif
123
storage
perfschema
pfs_events_statements.h
Generated on Sat Nov 9 2013 01:28:39 for MySQL 5.6.14 Source Code Document by
1.8.1.2