CCProfiler cocos2d builtin profiler. More...
#include <CCProfiling.h>
Public Member Functions | |
| ~CCProfiler (void) | |
| void | displayTimers (void) |
| display the timers More... | |
| bool | init (void) |
| CCProfilingTimer * | createAndAddTimerWithName (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) |
| CCObject * | autorelease (void) |
| CCObject * | copy (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 CCObject * | copyWithZone (CCZone *pZone) |
Static Public Member Functions | |
| static CCProfiler * | sharedProfiler (void) |
Public Attributes | |
| CCDictionary * | m_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 |
CCProfiler cocos2d builtin profiler.
To use it, enable set the CC_ENABLE_PROFILERS=1 in the ccConfig.h file
| ~CCProfiler | ( | void | ) |
| 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 |
| CCDictionary* m_pActiveTimers |