David's final changes: more profiler features, fixes.
[ipdf/code.git] / src / main.h
index a96e933..2ead6f6 100644 (file)
@@ -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();
                
                

UCC git Repository :: git.ucc.asn.au