cocos2d-x  2.2.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCProfiler Class Reference

CCProfiler cocos2d builtin profiler. More...

#include <CCProfiling.h>

Inheritance diagram for CCProfiler:
CCObject CCCopying

Public Member Functions

 ~CCProfiler (void)
void displayTimers (void)
 display the timers More...
 
bool init (void)
CCProfilingTimercreateAndAddTimerWithName (const char *timerName)
 Creates and adds a new timer. More...
 
void releaseTimer (const char *timerName)
 releases a timer More...
 
void releaseAllTimers ()
 releases all timers More...
 
- Public Member Functions inherited from CCObject
 CCObject (void)
virtual ~CCObject (void)
void release (void)
void retain (void)
CCObjectautorelease (void)
CCObjectcopy (void)
bool isSingleReference (void) const
unsigned int retainCount (void) const
virtual bool isEqual (const CCObject *pObject)
virtual void acceptVisitor (CCDataVisitor &visitor)
virtual void update (float dt)
- Public Member Functions inherited from CCCopying
virtual CCObjectcopyWithZone (CCZone *pZone)

Static Public Member Functions

static CCProfilersharedProfiler (void)

Public Attributes

CCDictionarym_pActiveTimers
- Public Attributes inherited from CCObject
unsigned int m_uID
int m_nLuaID

Additional Inherited Members

- Protected Attributes inherited from CCObject
unsigned int m_uReference
unsigned int m_uAutoReleaseCount

Detailed Description

CCProfiler cocos2d builtin profiler.

To use it, enable set the CC_ENABLE_PROFILERS=1 in the ccConfig.h file

Constructor & Destructor Documentation

~CCProfiler ( void  )

Member Function Documentation

CCProfilingTimer*
createAndAddTimerWithName
( const char *  timerName)

Creates and adds a new timer.

void displayTimers ( void  )

display the timers

bool init ( void  )
void releaseAllTimers ( )

releases all timers

void releaseTimer ( const char *  timerName)

releases a timer

static CCProfiler* sharedProfiler ( void  )
static

Member Data Documentation

CCDictionary* m_pActiveTimers

The documentation for this class was generated from the following file: