MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
table_events_waits_summary.h
Go to the documentation of this file.
1 /* Copyright (c) 2008, 2010, 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_EVENTS_WAITS_SUMMARY_H
17 #define TABLE_EVENTS_WAITS_SUMMARY_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_all_instr.h"
29 #include "table_helper.h"
30 
38 {
40  const char *m_name;
47 };
48 
51 {
52 public:
55  static PFS_engine_table* create();
56  static int delete_all_rows();
57 
58 protected:
59  void make_instr_row(PFS_instr *pfs, PFS_instr_class *klass,
60  const void *object_instance_begin,
61  PFS_single_stat *pfs_stat);
62  virtual void make_mutex_row(PFS_mutex *pfs);
63  virtual void make_rwlock_row(PFS_rwlock *pfs);
64  virtual void make_cond_row(PFS_cond *pfs);
65  virtual void make_file_row(PFS_file *pfs);
66  virtual void make_socket_row(PFS_socket *pfs);
67 
68  virtual int read_row_values(TABLE *table,
69  unsigned char *buf,
70  Field **fields,
71  bool read_all);
72 
74 
75 public:
77  {}
78 
79 private:
81  static THR_LOCK m_table_lock;
83  static TABLE_FIELD_DEF m_field_def;
84 
88  bool m_row_exists;
89 };
90 
92 #endif