X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fdebugscript.h;h=0625535db2532d6aa2412621172f73008919ec71;hp=ae2c8eb4cc3790736626c710cd638d2d3d37567c;hb=a8297c3461718f2d9afc7a2f8ca620d320ac5f97;hpb=c786732a062b493be1e53c0223d7cb1858fd3d0f diff --git a/src/debugscript.h b/src/debugscript.h index ae2c8eb..0625535 100644 --- a/src/debugscript.h +++ b/src/debugscript.h @@ -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 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;