FPS measurement in debugscript, more python analysis
[ipdf/code.git] / src / debugscript.h
index ae2c8eb..0625535 100644 (file)
@@ -43,6 +43,8 @@ private:
                AT_SetBounds,
                AT_QueryGPUBounds, // query bounds of Beziers when transformed to GPU
                AT_ScreenShot, // take screenshot
+               AT_PrintFPS, // Print FPS statistics about the frames
+               AT_PrintBounds, // Print bounds
                AT_Quit
        };
 
@@ -66,6 +68,11 @@ private:
        std::map<std::string, int> m_labels;
        unsigned m_index;
        
+       double m_fps_cpu_mean;
+       double m_fps_gpu_mean;
+       double m_fps_cpu_stddev;
+       double m_fps_gpu_stddev;
+       
        struct PerformanceData
        {
                clock_t clock;

UCC git Repository :: git.ucc.asn.au