1/* Copyright (c) 2010, 2011, 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
14 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
15
16#ifndef PFS_EVENTS_H
17#define PFS_EVENTS_H
18
19/**
20 @file storage/perfschema/pfs_events.h
21 Events data structures (declarations).
22*/
23
24#include "pfs_column_types.h"
25
26struct PFS_instr_class;
27
28/** An event record. */
29struct PFS_events
30{
31 /** THREAD_ID. */
32 ulonglong m_thread_internal_id;
33 /** EVENT_ID. */
34 ulonglong m_event_id;
35 /** END_EVENT_ID. */
36 ulonglong m_end_event_id;
37 /** (EVENT_TYPE) */
38 enum_event_type m_event_type;
39 /** NESTING_EVENT_ID. */
40 ulonglong m_nesting_event_id;
41 /** NESTING_EVENT_TYPE */
42 enum_event_type m_nesting_event_type;
43 /** Instrument metadata. */
44 PFS_instr_class *m_class;
45 /**
46 Timer start.
47 This member is populated only if m_class->m_timed is true.
48 */
49 ulonglong m_timer_start;
50 /**
51 Timer end.
52 This member is populated only if m_class->m_timed is true.
53 */
54 ulonglong m_timer_end;
55 /** Location of the instrumentation in the source code (file name). */
56 const char *m_source_file;
57 /** Location of the instrumentation in the source code (line number). */
58 uint m_source_line;
59};
60
61#endif
62
63