X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fdebugscript.h;h=25fee58f9dccab46e540420132c829ed0f209579;hp=ae2c8eb4cc3790736626c710cd638d2d3d37567c;hb=77e5193080bdeb052803683b77bc6dd16f427b57;hpb=c786732a062b493be1e53c0223d7cb1858fd3d0f diff --git a/src/debugscript.h b/src/debugscript.h index ae2c8eb..25fee58 100644 --- a/src/debugscript.h +++ b/src/debugscript.h @@ -43,6 +43,9 @@ 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_ProfileDisplay, AT_Quit }; @@ -66,6 +69,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;