libglfps adds a framerate display to OpenGL apps that don't have one built in. It uses LD_PRELOAD and is similar to FRAPS on Windows.