Debian Codegraph @

storage/perfschema/table_mems_by_host_by_event_name.h

raw symbols SCIP
1 /* Copyright (c) 2011, 2023, Oracle and/or its affiliates.
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, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is also distributed with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have included with MySQL.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License, version 2.0, for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software Foundation,
21 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */
22
23 #ifndef TABLE_MEMORY_SUMMARY_BY_HOST_BY_EVENT_NAME_H
24 #define TABLE_MEMORY_SUMMARY_BY_HOST_BY_EVENT_NAME_Hcxx . . $ `storage/perfschema/table_mems_by_host_by_event_name.h:24:9`!
25
26 /**
27 @file storage/perfschema/table_mems_by_host_by_event_name.h
28 Table MEMORY_SUMMARY_BY_HOST_BY_EVENT_NAME (declarations).
29 */
30
31 #include "pfs_column_types.h"cxx . . $ `<file>/storage/perfschema/pfs_column_types.h`/
32 #include "pfs_engine_table.h"cxx . . $ `<file>/storage/perfschema/pfs_engine_table.h`/
33 #include "pfs_instr_class.h"cxx . . $ `<file>/storage/perfschema/pfs_instr_class.h`/
34 #include "pfs_host.h"cxx . . $ `<file>/storage/perfschema/pfs_host.h`/
35 #include "table_helper.h"cxx . . $ `<file>/storage/perfschema/table_helper.h`/
36
37 /**
38 @addtogroup Performance_schema_tables
39 @{
40 */
41
42 /** A row of PERFORMANCE_SCHEMA.MEMORY_SUMMARY_BY_HOST_BY_EVENT_NAME. */
43 struct row_mems_by_host_by_event_namecxx . . $ row_mems_by_host_by_event_name#
44 {
45 /** Column HOST */
46 PFS_host_rowcxx . . $ PFS_host_row# m_hostcxx . . $ row_mems_by_host_by_event_name#m_host.;
47 /** Column EVENT_NAME. */
48 PFS_event_name_rowcxx . . $ PFS_event_name_row# m_event_namecxx . . $ row_mems_by_host_by_event_name#m_event_name.;
49 /** Columns COUNT_ALLOC, ... */
50 PFS_memory_stat_rowcxx . . $ PFS_memory_stat_row# m_statcxx . . $ row_mems_by_host_by_event_name#m_stat.;
51 };
52
53 /**
54 Position of a cursor on
55 PERFORMANCE_SCHEMA.EVENTS_MEMORY_SUMMARY_BY_HOST_BY_EVENT_NAME.
56 Index 1 on host (0 based)
57 Index 2 on memory class (1 based)
58 */
59 struct pos_mems_by_host_by_event_namecxx . . $ pos_mems_by_host_by_event_name#
60 : public PFS_double_indexcxx . . $ PFS_double_index#
61 {
62 pos_mems_by_host_by_event_namecxx . . $ pos_mems_by_host_by_event_name#pos_mems_by_host_by_event_name(49f6e7a06ebc5aa8).()
63 : PFS_double_indexcxx . . $ PFS_double_index#(0, 1)
64 {}
65
66 inline void resetcxx . . $ pos_mems_by_host_by_event_name#reset(49f6e7a06ebc5aa8).(void)
67 {
68 m_index_1cxx . . $ PFS_double_index#m_index_1.= 0;
69 m_index_2cxx . . $ PFS_double_index#m_index_2.= 1;
70 }
71
72 inline void next_hostcxx . . $ pos_mems_by_host_by_event_name#next_host(49f6e7a06ebc5aa8).(void)
73 {
74 m_index_1cxx . . $ PFS_double_index#m_index_1.++;
75 m_index_2cxx . . $ PFS_double_index#m_index_2.= 1;
76 }
77
78 inline void next_classcxx . . $ pos_mems_by_host_by_event_name#next_class(49f6e7a06ebc5aa8).(void)
79 {
80 m_index_2cxx . . $ PFS_double_index#m_index_2.++;
81 }
82 };
83
84 /** Table PERFORMANCE_SCHEMA.MEMORY_SUMMARY_BY_HOST_BY_EVENT_NAME. */
85 class table_mems_by_host_by_event_namecxx . . $ table_mems_by_host_by_event_name# : public PFS_engine_tablecxx . . $ PFS_engine_table#
86 {
87 public:
88 static PFS_engine_table_share_statecxx . . $ PFS_engine_table_share_state# m_share_statecxx . . $ table_mems_by_host_by_event_name#m_share_state.;
89 /** Table share */
90 static PFS_engine_table_sharecxx . . $ PFS_engine_table_share# m_sharecxx . . $ table_mems_by_host_by_event_name#m_share.;
91 static PFS_engine_tablecxx . . $ PFS_engine_table#* createcxx . . $ table_mems_by_host_by_event_name#create(314e88453c9d561a).();
92 static int delete_all_rowscxx . . $ table_mems_by_host_by_event_name#delete_all_rows(b126dc7c1de90089).();
93 static ha_rowscxx . . $ ha_rows# get_row_countcxx . . $ table_mems_by_host_by_event_name#get_row_count(73266883b0c7072b).();
94
95 int rnd_nextcxx . . $ table_mems_by_host_by_event_name#rnd_next(b126dc7c1de90089).() override;
96 int rnd_poscxx . . $ table_mems_by_host_by_event_name#rnd_pos(aa284d429d6986c8).(const void *pos) override;
97 void reset_positioncxx . . $ table_mems_by_host_by_event_name#reset_position(49f6e7a06ebc5aa8).(void) override;
98
99 private:
100 int read_row_valuescxx . . $ table_mems_by_host_by_event_name#read_row_values(139ec8e2a7764e1).(TABLEcxx . . $ TABLE# *table,
101 unsigned char *buf,
102 Fieldcxx . . $ Field# **fields,
103 bool read_all) override;
104
105 table_mems_by_host_by_event_namecxx . . $ table_mems_by_host_by_event_name#table_mems_by_host_by_event_name(49f6e7a06ebc5aa8).();
106
107 public:
108 ~cxx . . $ table_mems_by_host_by_event_name#`~table_mems_by_host_by_event_name`(ced63f7c635d850d).table_mems_by_host_by_event_namecxx . . $ table_mems_by_host_by_event_name#()
109 {}
110
111 private:
112 void make_rowcxx . . $ table_mems_by_host_by_event_name#make_row(ff55658beae9de2).(PFS_hostcxx . . $ PFS_host# *host, PFS_memory_classcxx . . $ PFS_memory_class# *klass);
113
114 /** Table share lock. */
115 static THR_LOCK m_table_lockcxx . . $ table_mems_by_host_by_event_name#m_table_lock.;
116 /** Fields definition. */
117 static TABLE_FIELD_DEFcxx . . $ TABLE_FIELD_DEF# m_field_defcxx . . $ table_mems_by_host_by_event_name#m_field_def.;
118
119 /** Current row. */
120 row_mems_by_host_by_event_namecxx . . $ row_mems_by_host_by_event_name# m_rowcxx . . $ table_mems_by_host_by_event_name#m_row.;
121 /** True is the current row exists. */
122 bool m_row_existscxx . . $ table_mems_by_host_by_event_name#m_row_exists.;
123 /** Current position. */
124 pos_mems_by_host_by_event_namecxx . . $ pos_mems_by_host_by_event_name# m_poscxx . . $ table_mems_by_host_by_event_name#m_pos.;
125 /** Next position. */
126 pos_mems_by_host_by_event_namecxx . . $ pos_mems_by_host_by_event_name# m_next_poscxx . . $ table_mems_by_host_by_event_name#m_next_pos.;
127 };
128
129 /** @} */
130 #endif