git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
David's final changes: more profiler features, fixes.
[ipdf/code.git]
/
src
/
main.h
diff --git
a/src/main.h
b/src/main.h
index
a96e933
..
2ead6f6
100644
(file)
--- 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;
real_clock_prev = real_clock_now;
#endif
++frames;
+ g_profiler.BeginZone("MainLoop");
g_profiler.BeginZone("scr.Clear()");
scr.Clear();
g_profiler.EndZone();
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.BeginZone("scr.Present()");
scr.Present();
g_profiler.EndZone();
+ g_profiler.EndZone();
+ g_profiler.AddCounter("Total Objects", doc.ObjectCount());
g_profiler.EndFrame();
g_profiler.EndFrame();
UCC
git Repository :: git.ucc.asn.au