From ab4dee91de96555db158db91240ff91520318068 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 14 Feb 2008 16:49:22 +0000 Subject: 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 --- include/socketengine.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/socketengine.h') 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. -- cgit v1.2.3