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
profileon/profileoff in debugscript
[ipdf/code.git]
/
src
/
debugscript.h
diff --git
a/src/debugscript.h
b/src/debugscript.h
index
ae2c8eb
..
25fee58
100644
(file)
--- a/
src/debugscript.h
+++ b/
src/debugscript.h
@@
-43,6
+43,9
@@
private:
AT_SetBounds,
AT_QueryGPUBounds, // query bounds of Beziers when transformed to GPU
AT_ScreenShot, // take screenshot
AT_SetBounds,
AT_QueryGPUBounds, // query bounds of Beziers when transformed to GPU
AT_ScreenShot, // take screenshot
+ AT_PrintFPS, // Print FPS statistics about the frames
+ AT_PrintBounds, // Print bounds
+ AT_ProfileDisplay,
AT_Quit
};
AT_Quit
};
@@
-66,6
+69,11
@@
private:
std::map<std::string, int> m_labels;
unsigned m_index;
std::map<std::string, int> m_labels;
unsigned m_index;
+ double m_fps_cpu_mean;
+ double m_fps_gpu_mean;
+ double m_fps_cpu_stddev;
+ double m_fps_gpu_stddev;
+
struct PerformanceData
{
clock_t clock;
struct PerformanceData
{
clock_t clock;
UCC
git Repository :: git.ucc.asn.au