1
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
* Copyright (C) 2010 Vijay Samuel
5
* Copyright (C) 2008 MySQL
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22
#ifndef CLIENT_STATS_H
23
#define CLIENT_STATS_H
25
#include "client_priv.h"
32
Stats(long int in_timing,
34
uint32_t in_real_users,
36
long int in_create_timing,
37
uint64_t in_create_count) :
40
real_users(in_real_users),
42
create_timing(in_create_timing),
43
create_count(in_create_count)
55
long int getTiming() const
60
uint32_t getUsers() const
65
uint32_t getRealUsers() const
70
uint64_t getRows() const
75
long int getCreateTiming() const
80
uint64_t getCreateCount() const
85
void setTiming(long int in_timing)
90
void setUsers(uint32_t in_users)
95
void setRealUsers(uint32_t in_real_users)
97
real_users= in_real_users;
100
void setRows(uint64_t in_rows)
105
void setCreateTiming(long int in_create_timing)
107
create_timing= in_create_timing;
110
void setCreateCount(uint64_t in_create_count)
112
create_count= in_create_count;
120
long int create_timing;
121
uint64_t create_count;
124
#endif /* CLIENT_STATS_H */