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
table_socket_summary_by_instance.h
Go to the documentation of this file.
1
/* Copyright (c) 2008, 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 Foundation,
14
51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */
15
16
#ifndef TABLE_SOCKET_SUMMARY_BY_INSTANCE_H
17
#define TABLE_SOCKET_SUMMARY_BY_INSTANCE_H
18
24
#include "
pfs_column_types.h
"
25
#include "
pfs_engine_table.h
"
26
#include "
pfs_instr_class.h
"
27
#include "
pfs_instr.h
"
28
#include "
table_helper.h
"
29
39
struct
row_socket_summary_by_instance
40
{
42
PFS_event_name_row
m_event_name
;
43
45
const
void
*
m_identity
;
46
48
PFS_socket_io_stat_row
m_io_stat
;
49
};
50
52
class
table_socket_summary_by_instance
:
public
PFS_engine_table
53
{
54
public
:
56
static
PFS_engine_table_share
m_share
;
57
static
PFS_engine_table
* create();
58
static
int
delete_all_rows();
59
60
virtual
int
rnd_next
();
61
virtual
int
rnd_pos
(
const
void
*pos);
62
virtual
void
reset_position
(
void
);
63
64
private
:
65
virtual
int
read_row_values(
TABLE
*
table
,
66
unsigned
char
*
buf
,
67
Field
**fields,
68
bool
read_all);
69
70
table_socket_summary_by_instance
();
71
72
public
:
73
~
table_socket_summary_by_instance
()
74
{}
75
76
private
:
77
void
make_row(
PFS_socket
*pfs);
78
80
static
THR_LOCK
m_table_lock;
82
static
TABLE_FIELD_DEF
m_field_def;
83
85
row_socket_summary_by_instance
m_row;
87
bool
m_row_exists;
89
PFS_simple_index
m_pos;
91
PFS_simple_index
m_next_pos;
92
};
93
95
#endif
storage
perfschema
table_socket_summary_by_instance.h
Generated on Sat Nov 9 2013 01:28:41 for MySQL 5.6.14 Source Code Document by
1.8.1.2