How can i profile for performance?

How can i profile my game in cocos creator 2.1?
Im building for instant game and i need to find where there is perfomance spikes. In debug i can see draw calls ans cpu usage but i want to know how con i profile pieces of code and rutines.

Additonaly i want to port my facebook game to mobile but perfomance is lower so its posible to ecport a cocos 2.1 Project to c++?

This is a good question, anyone has any advice?

For html5 games i used google chrome. It has a profiler. It is hard to understand, specially for recognize what process belong to cocos. Butbits something