How to turn off the stats displayed when playing a game?
Either disable it with python:

bpy.context.scene.game_settings.show_framerate_profile = False


or untick the checkbox in the render settings panel: