MySQL 8.3.0
Source Code Documentation
pfs_status.h
Go to the documentation of this file.
1/* Copyright (c) 2015, 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_STATUS_H
24#define PFS_STATUS_H
25
26/**
27 @file storage/perfschema/pfs_status.h
28 Status variables statistics (declarations).
29*/
30
31#include "my_inttypes.h"
32#include "sql/system_variables.h" // COUNT_GLOBAL_STATUS_VARS
33
36
37 void reset();
38 void aggregate(const PFS_status_stats *from);
39 void aggregate_from(const System_status_var *from);
41
44};
45
51
52#endif
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:55
void reset_status_by_host()
Reset table STATUS_BY_HOST data.
Definition: pfs_status.cc:146
void reset_status_by_user()
Reset table STATUS_BY_USER data.
Definition: pfs_status.cc:135
void reset_status_by_thread()
Reset table STATUS_BY_THREAD data.
Definition: pfs_status.cc:79
void reset_status_by_account()
Reset table STATUS_BY_ACCOUNT data.
Definition: pfs_status.cc:124
void reset_global_status()
Reset table GLOBAL_STATUS data.
Definition: pfs_status.cc:151
Definition: pfs_status.h:34
void aggregate_from(const System_status_var *from)
Definition: pfs_status.cc:59
ulonglong m_stats[COUNT_GLOBAL_STATUS_VARS]
Definition: pfs_status.h:43
bool m_has_stats
Definition: pfs_status.h:42
PFS_status_stats()
Definition: pfs_status.cc:43
void reset()
Definition: pfs_status.cc:45
void aggregate(const PFS_status_stats *from)
Definition: pfs_status.cc:50
void aggregate_to(System_status_var *to)
Definition: pfs_status.cc:68
Per thread status variables.
Definition: system_variables.h:525
const int COUNT_GLOBAL_STATUS_VARS
Definition: system_variables.h:616