Checking performance of HTML 5 game?

When I make a native project, I can preview it and check performances. How do I do this for a web project?

Export to html 5 with event that writes current FPS into text object visible on screen?

Good hack!