To use the component, simply add ‘stats’ to your scene entity. Then when you reload the page, you should see the performance metrics in the top left corner of the screen.
<a-scene stats></a-scene>
Check out the official docs for the Stats component here.