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