Improvements in the debugging code for measuring performance.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@488 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/x0vncserver/PollingManager.h b/x0vncserver/PollingManager.h
index 04cc767..a56d2e4 100644
--- a/x0vncserver/PollingManager.h
+++ b/x0vncserver/PollingManager.h
@@ -23,6 +23,8 @@
#ifndef __POLLINGMANAGER_H__
#define __POLLINGMANAGER_H__
+#include <sys/time.h>
+
#include <X11/Xlib.h>
#include <rfb/VNCServer.h>
@@ -42,7 +44,6 @@
void setPointerPos(const Point &pos);
void unsetPointerPos();
- void pollDebug();
void poll();
// Configurable parameters.
@@ -96,6 +97,15 @@
unsigned int m_pollingStep;
static const int m_pollingOrder[];
+#ifdef DEBUG
+private:
+
+ void debugBeforePoll();
+ void debugAfterPoll();
+
+ struct timeval m_timeSaved;
+#endif
+
};
#endif // __POLLINGMANAGER_H__