X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fdebugscript.h;fp=src%2Fdebugscript.h;h=0625535db2532d6aa2412621172f73008919ec71;hp=ae2c8eb4cc3790736626c710cd638d2d3d37567c;hb=667281b828c8515e995c0000706157cee180fa08;hpb=f73ce73b9cec7f1e2c265b3cbcc7bca9c4011d11 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;