ProfileSessionListener should be used to visualize profile results.
More...
#include <OgreProfiler.h>
ProfileSessionListener should be used to visualize profile results.
Concrete impl. could be done using Overlay's but its not limited to them you can also create a custom listener which sends the profile informtaion over a network.
◆ DisplayMode
Enumerator |
---|
DISPLAY_PERCENTAGE | Display % frame usage on the overlay.
|
DISPLAY_MILLISECONDS | Display milliseconds on the overlay.
|
◆ ProfileSessionListener()
Ogre::ProfileSessionListener::ProfileSessionListener |
( |
| ) |
|
|
inline |
◆ ~ProfileSessionListener()
virtual Ogre::ProfileSessionListener::~ProfileSessionListener |
( |
| ) |
|
|
inlinevirtual |
◆ initializeSession()
virtual void Ogre::ProfileSessionListener::initializeSession |
( |
| ) |
|
|
pure virtual |
◆ finializeSession()
virtual void Ogre::ProfileSessionListener::finializeSession |
( |
| ) |
|
|
pure virtual |
◆ changeEnableState()
virtual void Ogre::ProfileSessionListener::changeEnableState |
( |
bool |
enabled | ) |
|
|
inlinevirtual |
If the profiler disables this listener then it should hide its panels (if any exists) or stop sending data over the network.
Reimplemented in Ogre::OverlayProfileSessionListener.
◆ displayResults()
virtual void Ogre::ProfileSessionListener::displayResults |
( |
const ProfileInstance & |
instance, |
|
|
ulong |
maxTotalFrameTime |
|
) |
| |
|
inlinevirtual |
◆ setDisplayMode()
void Ogre::ProfileSessionListener::setDisplayMode |
( |
DisplayMode |
d | ) |
|
|
inline |
Set the display mode for the overlay.
◆ getDisplayMode()
DisplayMode Ogre::ProfileSessionListener::getDisplayMode |
( |
| ) |
const |
|
inline |
Get the display mode for the overlay.
The documentation for this class was generated from the following file: