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
Added a profiler, which outputs time taken and calls to various functions.
[ipdf/code.git]
/
src
/
debugscript.h
diff --git
a/src/debugscript.h
b/src/debugscript.h
index
ae2c8eb
..
0625535
100644
(file)
--- a/
src/debugscript.h
+++ b/
src/debugscript.h
@@
-43,6
+43,8
@@
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_Quit
};
AT_Quit
};
@@
-66,6
+68,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