![]() |
Public API Reference |
#include <perfstat.h>
Inheritance diagram for iPerfStats:
Public Methods | |
virtual bool | Pause (bool pause)=0 |
Set whether paused. Returns previous status. More... | |
virtual void | ResetStats ()=0 |
Reset all statistics back to zero. More... | |
virtual void | SetResolution (int iMilSecs)=0 |
The frames per second is really the resolution number of frames divided by the time taken to complete them. More... | |
virtual void | SetName (const char *Name)=0 |
Set the name of this section, which will be utilised if the stats are printed to file. More... | |
virtual void | SetOutputFile (const char *Name, bool summary)=0 |
Output stats to named file. If summary is true, you'll get a summary. More... | |
virtual float | GetFPS ()=0 |
Get the current fps. More... | |
virtual iPerfStats * | StartNewSubsection (const char *name)=0 |
Start a new set of performance statistics as a subsection, with an optional name. More... | |
virtual void | FinishSubsection ()=0 |
Finish the subsection. This will DecRef () the subsection. More... | |
virtual bool | IsSubsection ()=0 |
Is there currently a subsection? More... | |
virtual void | PrintSectionStats (int sysflags)=0 |
Print this sections current summary stats, where sysflags is for the reporter. More... | |
virtual void | PrintSubsectionStats (int sysflags)=0 |
Print the subsections current stats, where sysflags is for the reporter. More... | |
virtual void | DebugSetBreak (int frame_num)=0 |
When ran with a debugger, this should cause it to break when starting this frame number, if compiled without CS_DEBUG it will have no effect. More... |
This plugin tracks and records all kinds of useful information while the program is running.
Definition at line 31 of file perfstat.h.
|
When ran with a debugger, this should cause it to break when starting this frame number, if compiled without CS_DEBUG it will have no effect. If you load this plugin last (like in walktest) then set frame_num to one less. |
|
Finish the subsection. This will DecRef () the subsection.
|
|
Get the current fps.
|
|
Is there currently a subsection?
|
|
Set whether paused. Returns previous status.
|
|
Print this sections current summary stats, where sysflags is for the reporter.
|
|
Print the subsections current stats, where sysflags is for the reporter.
|
|
Reset all statistics back to zero.
|
|
Set the name of this section, which will be utilised if the stats are printed to file.
|
|
Output stats to named file. If summary is true, you'll get a summary.
|
|
The frames per second is really the resolution number of frames divided by the time taken to complete them. Set to -1 to disable (the default). The resolution is the time interval in milliseconds in which a frames-per-second value is computed. |
|
Start a new set of performance statistics as a subsection, with an optional name. If you intend to print all the stats to file then this name will identify the subsection. |