MySQL 8.3.0
Source Code Documentation
pfs_events.h
Go to the documentation of this file.
1/* Copyright (c) 2010, 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
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef PFS_EVENTS_H
24#define PFS_EVENTS_H
25
26/**
27 @file storage/perfschema/pfs_events.h
28 Events data structures (declarations).
29*/
30
31#include "my_inttypes.h"
33
34struct PFS_instr_class;
35
36/** An event record. */
37struct PFS_events {
38 /** THREAD_ID. */
40 /** EVENT_ID. */
42 /** END_EVENT_ID. */
44 /** (EVENT_TYPE) */
46 /** NESTING_EVENT_ID. */
48 /** NESTING_EVENT_TYPE */
50 /** NESTING_EVENT_LEVEL */
52 /** Instrument metadata. */
54 /**
55 Timer start.
56 This member is populated only if @c m_class->m_timed is true.
57 */
59 /**
60 Timer end.
61 This member is populated only if @c m_class->m_timed is true.
62 */
64 /** Location of the instrumentation in the source code (file name). */
65 const char *m_source_file;
66 /** Location of the instrumentation in the source code (line number). */
68
69 PFS_events &operator=(const PFS_events &rhs) = default;
70};
71
72#endif
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:55
Data types for columns used in the performance schema tables (declarations)
enum_event_type
Enum values for the NESTING_EVENT_TYPE columns.
Definition: pfs_column_types.h:269
An event record.
Definition: pfs_events.h:37
ulonglong m_nesting_event_id
NESTING_EVENT_ID.
Definition: pfs_events.h:47
ulonglong m_thread_internal_id
THREAD_ID.
Definition: pfs_events.h:39
PFS_events & operator=(const PFS_events &rhs)=default
ulonglong m_timer_end
Timer end.
Definition: pfs_events.h:63
ulonglong m_event_id
EVENT_ID.
Definition: pfs_events.h:41
enum_event_type m_nesting_event_type
NESTING_EVENT_TYPE.
Definition: pfs_events.h:49
const char * m_source_file
Location of the instrumentation in the source code (file name).
Definition: pfs_events.h:65
enum_event_type m_event_type
(EVENT_TYPE)
Definition: pfs_events.h:45
PFS_instr_class * m_class
Instrument metadata.
Definition: pfs_events.h:53
ulonglong m_timer_start
Timer start.
Definition: pfs_events.h:58
uint m_source_line
Location of the instrumentation in the source code (line number).
Definition: pfs_events.h:67
ulonglong m_end_event_id
END_EVENT_ID.
Definition: pfs_events.h:43
uint m_nesting_event_level
NESTING_EVENT_LEVEL.
Definition: pfs_events.h:51
Information for all instrumentation.
Definition: pfs_instr_class.h:211