X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fmain.h;h=2ead6f6b6f7dd723deaa2feb81e1c7321c5c9d0e;hp=a96e933c64fbeb1acdfdaa1a0ae1c83da02f33b5;hb=b716ae547424e4e4bbda86781a151c31e3a64e67;hpb=f0b6c9b6b95fde134927c395afbfbbbc057868e6 diff --git a/src/main.h b/src/main.h index a96e933..2ead6f6 100644 --- a/src/main.h +++ b/src/main.h @@ -125,6 +125,7 @@ void MainLoop(Document & doc, Screen & scr, View & view, int max_frames = -1) real_clock_prev = real_clock_now; #endif ++frames; + g_profiler.BeginZone("MainLoop"); g_profiler.BeginZone("scr.Clear()"); scr.Clear(); g_profiler.EndZone(); @@ -227,6 +228,8 @@ void MainLoop(Document & doc, Screen & scr, View & view, int max_frames = -1) g_profiler.BeginZone("scr.Present()"); scr.Present(); g_profiler.EndZone(); + g_profiler.EndZone(); + g_profiler.AddCounter("Total Objects", doc.ObjectCount()); g_profiler.EndFrame();