X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fdebugscript.h;h=fd1a1959526918b91d6865ed7edbad1e6f1f4111;hp=8b62b5ccbba15c03c2f4b8a708582377bf8a79a1;hb=64b7c42c71c35d520424cf4ca5ecaa99faef8b26;hpb=b29310a04a51cd7d39d0858e2dec8a75c15cf097 diff --git a/src/debugscript.h b/src/debugscript.h index 8b62b5c..fd1a195 100644 --- a/src/debugscript.h +++ b/src/debugscript.h @@ -36,6 +36,11 @@ private: AT_Label, AT_Goto, AT_Debug, + AT_ClearDocument, + AT_ClearPerformance, + AT_PrintPerformance, + AT_RecordPerformance, + AT_DebugFont, AT_Quit }; @@ -57,6 +62,20 @@ private: std::vector m_actions; std::map m_labels; unsigned m_index; + + struct PerformanceData + { + clock_t clock; + unsigned object_count; + VRect view_bounds; + }; + + PerformanceData m_perf_start; + PerformanceData m_perf_last; + + void PrintPerformance(View * view, Screen * scr); + void ClearPerformance(View * view, Screen * scr); + void ParseAction(); };