Add a utility for toggling the profiler from within the game.