Cocos2d-x之CCProfiler

注:本api基于Cocos2d-x 0.13版本

#if CC_ENABLE_PROFILERS
    CCProfilingTimer * timer = CCProfiler::timerWithName("none", this)
#endif

#if CC_ENABLE_PROFILERS
    CCProfiler::releaseTimer(timer);
    timer = NULL;
#endif

#if CC_ENABLE_PROFILERS
    CCProfilingBeginTimingBlock(timer);
#endif

#if CC_ENABLE_PROFILERS
    CCProfilingEndTimingBlock(timer)
#endif