MySQL 8.0.40
Source Code Documentation
pfs_events.h
Go to the documentation of this file.
1/* Copyright (c) 2010, 2024, 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 designed to work 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 either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef PFS_EVENTS_H
25#define PFS_EVENTS_H
26
27/**
28 @file storage/perfschema/pfs_events.h
29 Events data structures (declarations).
30*/
31
32#include "my_inttypes.h"
34
35struct PFS_instr_class;
36
37/** An event record. */
38struct PFS_events {
39 /** THREAD_ID. */
41 /** EVENT_ID. */
43 /** END_EVENT_ID. */
45 /** (EVENT_TYPE) */
47 /** NESTING_EVENT_ID. */
49 /** NESTING_EVENT_TYPE */
51 /** NESTING_EVENT_LEVEL */
53 /** Instrument metadata. */
55 /**
56 Timer start.
57 This member is populated only if @c m_class->m_timed is true.
58 */
60 /**
61 Timer end.
62 This member is populated only if @c m_class->m_timed is true.
63 */
65 /** Location of the instrumentation in the source code (file name). */
66 const char *m_source_file;
67 /** Location of the instrumentation in the source code (line number). */
69
70 PFS_events &operator=(const PFS_events &rhs) = default;
71};
72
73#endif
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
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:270
An event record.
Definition: pfs_events.h:38
ulonglong m_nesting_event_id
NESTING_EVENT_ID.
Definition: pfs_events.h:48
ulonglong m_thread_internal_id
THREAD_ID.
Definition: pfs_events.h:40
PFS_events & operator=(const PFS_events &rhs)=default
ulonglong m_timer_end
Timer end.
Definition: pfs_events.h:64
ulonglong m_event_id
EVENT_ID.
Definition: pfs_events.h:42
enum_event_type m_nesting_event_type
NESTING_EVENT_TYPE.
Definition: pfs_events.h:50
const char * m_source_file
Location of the instrumentation in the source code (file name).
Definition: pfs_events.h:66
enum_event_type m_event_type
(EVENT_TYPE)
Definition: pfs_events.h:46
PFS_instr_class * m_class
Instrument metadata.
Definition: pfs_events.h:54
ulonglong m_timer_start
Timer start.
Definition: pfs_events.h:59
uint m_source_line
Location of the instrumentation in the source code (line number).
Definition: pfs_events.h:68
ulonglong m_end_event_id
END_EVENT_ID.
Definition: pfs_events.h:44
uint m_nesting_event_level
NESTING_EVENT_LEVEL.
Definition: pfs_events.h:52
Information for all instrumentation.
Definition: pfs_instr_class.h:205
unsigned int uint
Definition: uca9-dump.cc:75