purge profiler data one + or - is pressed

Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
This commit is contained in:
Ricardo Quesada 2013-08-21 20:02:50 -07:00
parent cd7773ba0e
commit f0a2f6cbf8
1 changed files with 4 additions and 0 deletions

View File

@ -140,6 +140,8 @@ void NodeChildrenMainScene::initWithQuantityOfNodes(unsigned int nNodes)
updateQuantityLabel();
updateQuantityOfNodes();
CC_PROFILER_PURGE_ALL();
});
decrease->setColor(Color3B(0,200,20));
auto increase = MenuItemFont::create(" + ", [&](Object *sender) {
@ -149,6 +151,8 @@ void NodeChildrenMainScene::initWithQuantityOfNodes(unsigned int nNodes)
updateQuantityLabel();
updateQuantityOfNodes();
CC_PROFILER_PURGE_ALL();
});
increase->setColor(Color3B(0,200,20));