Display performance statistics in viewer
Adds an optional graph to the viewer to display current frame rate,
pixel rate and network bandwidth. Makes it easier to debug and test
performance related issues.
diff --git a/vncviewer/CConn.h b/vncviewer/CConn.h
index d6dd4a7..93cc278 100644
--- a/vncviewer/CConn.h
+++ b/vncviewer/CConn.h
@@ -40,6 +40,10 @@
const char *connectionInfo();
+ unsigned getFrameCount();
+ unsigned getPixelCount();
+ unsigned getPosition();
+
// FdInStreamBlockCallback methods
void blockCallback();
@@ -89,6 +93,9 @@
DesktopWindow *desktop;
+ unsigned frameCount;
+ unsigned pixelCount;
+
rfb::PixelFormat serverPF;
rfb::PixelFormat fullColourPF;