Planeshift
netprofile.h
Go to the documentation of this file.
1 /*
2  * netprofile.h by Ondrej Hurt
3  *
4  * Copyright (C) 2001 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5  *
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation (version 2 of the License)
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  *
18  */
19 
20 #ifndef __NETPROFILE_H__
21 #define __NETPROFILE_H__
22 
23 #include <csutil/parray.h>
24 
25 #include "message.h"
26 #include "util/psprofile.h"
27 
36 {
37 public:
38  void AddSentMsg(MsgEntry * me);
39  void AddReceivedMsg(MsgEntry * me);
40  csString Dump();
41  void Reset();
42 protected:
43  void AddEnoughRecords(csArray<psOperProfile*> & profs, int neededIndex, const char * desc);
44 
48  csArray<psOperProfile*> recvProfs, sentProfs;
49 };
50 
53 #endif
void AddEnoughRecords(csArray< psOperProfile * > &profs, int neededIndex, const char *desc)
The structure of 1 queue entry (pointer to a message)
Definition: message.h:143
csArray< psOperProfile * > recvProfs
Statistics for receiving and sending of different message types.
Definition: netprofile.h:48
void AddSentMsg(MsgEntry *me)
void AddReceivedMsg(MsgEntry *me)
csArray< psOperProfile * > sentProfs
Definition: netprofile.h:48
csPDelArray< psOperProfile > profs
Definition: psprofile.h:94
csString Dump()
Statistics of receiving or sending of network messages.
Definition: netprofile.h:35
Statistics for all kinds of operations This class is abstract, you have to inherit from it to use it...
Definition: psprofile.h:82