MySQL 5.6.14 Source Code Document
 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 
35 {
37  char m_current_schema_name[NAME_LEN];
44 
46  ulonglong m_lock_time;
47 
49  char m_message_text[MYSQL_ERRMSG_SIZE+1];
53  char m_sqlstate[SQLSTATE_LENGTH];
59  ulonglong m_rows_affected;
60 
62  ulonglong m_rows_sent;
64  ulonglong m_rows_examined;
70  ulonglong m_select_full_join;
74  ulonglong m_select_range;
78  ulonglong m_select_scan;
82  ulonglong m_sort_range;
84  ulonglong m_sort_rows;
86  ulonglong m_sort_scan;
88  ulonglong m_no_index_used;
92  PSI_digest_storage m_digest_storage;
93 };
94 
97 
101 
103 extern volatile uint32 events_statements_history_long_index;
105 extern ulong events_statements_history_long_size;
106 
107 int init_events_statements_history_long(uint events_statements_history_long_sizing);
109 
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