Monitoring memory usage and frame rate in an application