![]() |
cocos2d-iphone
2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
|
#import <CCProfiling.h>
Public Member Functions | |
(CCProfilingTimer *) | - createAndAddTimerWithName: |
(void) | - releaseTimer: |
(void) | - releaseAllTimers |
(void) | - displayTimers |
Static Public Member Functions | |
(CCProfiler *) | + sharedProfiler |
Public Attributes | |
NSMutableDictionary * | activeTimers |
CCProfiler cocos2d builtin profiler.
To use it, enable set the CC_ENABLE_PROFILERS=1 in the ccConfig.h file
- (CCProfilingTimer*) createAndAddTimerWithName: | (NSString *) | timerName |
Creates and adds a new timer
- (void) displayTimers |
display the timers
- (void) releaseAllTimers |
releases all timers
- (void) releaseTimer: | (NSString *) | timerName |
releases a timer
+ (CCProfiler*) sharedProfiler |
shared instance