How do I enable the FPS in the window menu?

How enable fps and other info in window’s menu?
Like this:

http://monosnap.com/image/2iFxLEKInUkvSxyeK1EtXV68iAcyqY.png

Go to main menu → Editor Preferences → General → Miscellaneous → Show Frame Rate and Memory