Debian Codegraph @

storage/perfschema/table_mems_global_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_GLOBAL_BY_EVENT_NAME_H
24 #define TABLE_MEMORY_SUMMARY_GLOBAL_BY_EVENT_NAME_Hcxx . . $ `storage/perfschema/table_mems_global_by_event_name.h:24:9`!
25
26 /**
27 @file storage/perfschema/table_mems_global_by_event_name.h
28 Table MEMORY_SUMMARY_GLOBAL_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_builtin_memory.h"cxx . . $ `<file>/storage/perfschema/pfs_builtin_memory.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_GLOBAL_BY_EVENT_NAME. */
43 struct row_mems_global_by_event_namecxx . . $ row_mems_global_by_event_name#
44 {
45 /** Column EVENT_NAME. */
46 PFS_event_name_rowcxx . . $ PFS_event_name_row# m_event_namecxx . . $ row_mems_global_by_event_name#m_event_name.;
47 /** Columns COUNT_ALLOC, ... */
48 PFS_memory_stat_rowcxx . . $ PFS_memory_stat_row# m_statcxx . . $ row_mems_global_by_event_name#m_stat.;
49 };
50
51 /**
52 Position of a cursor on
53 PERFORMANCE_SCHEMA.MEMORY_SUMMARY_GLOBAL_BY_EVENT_NAME.
54 Index 1 on view
55 Index 2 on instrument key (1 based)
56 */
57 struct pos_mems_global_by_event_namecxx . . $ pos_mems_global_by_event_name# : public PFS_double_indexcxx . . $ PFS_double_index#
58 {
59 static const uint FIRST_VIEWcxx . . $ pos_mems_global_by_event_name#FIRST_VIEW.= 1;
60 static const uint VIEW_BUILTIN_MEMORYcxx . . $ pos_mems_global_by_event_name#VIEW_BUILTIN_MEMORY.= 1;
61 static const uint VIEW_MEMORYcxx . . $ pos_mems_global_by_event_name#VIEW_MEMORY.= 2;
62 static const uint LAST_VIEWcxx . . $ pos_mems_global_by_event_name#LAST_VIEW.= 2;
63
64 pos_mems_global_by_event_namecxx . . $ pos_mems_global_by_event_name#pos_mems_global_by_event_name(49f6e7a06ebc5aa8).()
65 : PFS_double_indexcxx . . $ PFS_double_index#PFS_double_index(b4d55b1286ff73e8).(FIRST_VIEWcxx . . $ pos_mems_global_by_event_name#FIRST_VIEW., 1)
66 {}
67
68 inline void resetcxx . . $ pos_mems_global_by_event_name#reset(49f6e7a06ebc5aa8).(void)
69 {
70 m_index_1cxx . . $ PFS_double_index#m_index_1.= FIRST_VIEWcxx . . $ pos_mems_global_by_event_name#FIRST_VIEW.;
71 m_index_2cxx . . $ PFS_double_index#m_index_2.= 1;
72 }
73
74 inline bool has_more_viewcxx . . $ pos_mems_global_by_event_name#has_more_view(c9857a73d68e59ba).(void)
75 { return (m_index_1cxx . . $ PFS_double_index#m_index_1. <= LAST_VIEWcxx . . $ pos_mems_global_by_event_name#LAST_VIEW.); }
76
77 inline void next_viewcxx . . $ pos_mems_global_by_event_name#next_view(49f6e7a06ebc5aa8).(void)
78 {
79 m_index_1cxx . . $ PFS_double_index#m_index_1.++;
80 m_index_2cxx . . $ PFS_double_index#m_index_2.= 1;
81 }
82 };
83
84 /** Table PERFORMANCE_SCHEMA.MEMORY_SUMMARY_GLOBAL_BY_EVENT_NAME. */
85 class table_mems_global_by_event_namecxx . . $ table_mems_global_by_event_name# : public PFS_engine_tablecxx . . $ PFS_engine_table#
86 {
87 typedef pos_mems_global_by_event_namecxx . . $ pos_mems_global_by_event_name# pos_tcxx . . $ table_mems_global_by_event_name#pos_t#;
88
89 public:
90 static PFS_engine_table_share_statecxx . . $ PFS_engine_table_share_state# m_share_statecxx . . $ table_mems_global_by_event_name#m_share_state.;
91 /** Table share */
92 static PFS_engine_table_sharecxx . . $ PFS_engine_table_share# m_sharecxx . . $ table_mems_global_by_event_name#m_share.;
93 static PFS_engine_tablecxx . . $ PFS_engine_table#* createcxx . . $ table_mems_global_by_event_name#create(314e88453c9d561a).();
94 static int delete_all_rowscxx . . $ table_mems_global_by_event_name#delete_all_rows(b126dc7c1de90089).();
95 static ha_rowscxx . . $ ha_rows# get_row_countcxx . . $ table_mems_global_by_event_name#get_row_count(73266883b0c7072b).();
96
97 int rnd_nextcxx . . $ table_mems_global_by_event_name#rnd_next(b126dc7c1de90089).() override;
98 int rnd_poscxx . . $ table_mems_global_by_event_name#rnd_pos(aa284d429d6986c8).(const void *pos) override;
99 void reset_positioncxx . . $ table_mems_global_by_event_name#reset_position(49f6e7a06ebc5aa8).(void) override;
100
101 private:
102 int read_row_valuescxx . . $ table_mems_global_by_event_name#read_row_values(139ec8e2a7764e1).(TABLEcxx . . $ TABLE# *table,
103 unsigned char *buf,
104 Fieldcxx . . $ Field# **fields,
105 bool read_all) override;
106
107 table_mems_global_by_event_namecxx . . $ table_mems_global_by_event_name#table_mems_global_by_event_name(49f6e7a06ebc5aa8).();
108
109 public:
110 ~cxx . . $ table_mems_global_by_event_name#`~table_mems_global_by_event_name`(ced63f7c635d850d).table_mems_global_by_event_namecxx . . $ table_mems_global_by_event_name#()
111 {}
112
113 private:
114 void make_rowcxx . . $ table_mems_global_by_event_name#make_row(75cc0d3b2fe22a81).(PFS_builtin_memory_classcxx . . $ PFS_builtin_memory_class# *klass);
115 void make_rowcxx . . $ table_mems_global_by_event_name#make_row(ffebf2b8481ec1ff).(PFS_memory_classcxx . . $ PFS_memory_class# *klass);
116
117 /** Table share lock. */
118 static THR_LOCK m_table_lockcxx . . $ table_mems_global_by_event_name#m_table_lock.;
119 /** Fields definition. */
120 static TABLE_FIELD_DEFcxx . . $ TABLE_FIELD_DEF# m_field_defcxx . . $ table_mems_global_by_event_name#m_field_def.;
121
122 /** Current row. */
123 row_mems_global_by_event_namecxx . . $ row_mems_global_by_event_name# m_rowcxx . . $ table_mems_global_by_event_name#m_row.;
124 /** True is the current row exists. */
125 bool m_row_existscxx . . $ table_mems_global_by_event_name#m_row_exists.;
126 /** Current position. */
127 pos_tcxx . . $ table_mems_global_by_event_name#pos_t# m_poscxx . . $ table_mems_global_by_event_name#m_pos.;
128 /** Next position. */
129 pos_tcxx . . $ table_mems_global_by_event_name#pos_t# m_next_poscxx . . $ table_mems_global_by_event_name#m_next_pos.;
130 };
131
132 /** @} */
133 #endif