A timer for measuring performance of code and dumping the results to a file. More...
|Holds the current statistics. More...|
|PerformanceCounter (const String &counterName, int runsPerPrintout=100, const File &loggingFile=File())|
|Creates a PerformanceCounter object. More...|
|void||start () noexcept|
|Starts timing. More...|
|Stops timing and prints out the results. More...|
|Dumps the current metrics to the debugger output and to a file. More...|
|Returns a copy of the current stats, and resets the internal counter. More...|
A timer for measuring performance of code and dumping the results to a file.
In this example, the time of each period between calling start/stop will be measured and averaged over 50 runs, and the results printed to a file every 50 times round the loop.
Constructor & Destructor Documentation
|PerformanceCounter::PerformanceCounter||(||const String &||counterName,|
|const File &||loggingFile =
Creates a PerformanceCounter object.
Member Function Documentation
- See also
Stops timing and prints out the results.
The number of iterations before doing a printout of the results is set in the constructor.
- See also
Dumps the current metrics to the debugger output and to a file.
As well as using Logger::outputDebugString to print the results, this will write then to the file specified in the constructor (if this was valid).
Returns a copy of the current stats, and resets the internal counter.
The documentation for this class was generated from the following file:
Generated on Fri Jan 12 2018 09:51:21 for JUCE by 1.8.13