summaryrefslogtreecommitdiff
path: root/include/socketengine.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-14 16:49:22 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-14 16:49:22 +0000
commitab4dee91de96555db158db91240ff91520318068 (patch)
tree1af96344a9c30466cec7e83ec9283efc9e8413a6 /include/socketengine.h
parentf4ddd40badd2eb5181dadc1dcd59d7200738bf24 (diff)
Keep count of the number of events in total, and seperate read, write and error event counters. We can use this for monitoring of heavy socket engine activity, e.g. a 'stuck' eventhandler
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8933 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/socketengine.h')
-rw-r--r--include/socketengine.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/socketengine.h b/include/socketengine.h
index 6f5d4131b..3acc7bd4f 100644
--- a/include/socketengine.h
+++ b/include/socketengine.h
@@ -69,6 +69,7 @@ class CoreExport EventHandler : public Extensible
*/
int fd;
public:
+
/** Get the current file descriptor
* @return The file descriptor of this handler
*/
@@ -169,6 +170,11 @@ protected:
EventHandler* ref[MAX_DESCRIPTORS];
public:
+ double TotalEvents;
+ double ReadEvents;
+ double WriteEvents;
+ double ErrorEvents;
+
/** Constructor.
* The constructor transparently initializes
* the socket engine which the ircd is using.