AppStats for web2py
If you are running a web2py app on AppEngine it is matter of sanity to have AppStats logging your app 's performance. It is common practice to have performance monitor for all major web applications out there so that you know where to optimize your application.
If you are on AppEngine the performance of your application is even more crucial as better performance means less costs and stability (as it is easy to hit the restrictions).
If you have a web2py application it is very easy to this as web2py is first class wsgi citizen. Simply go to gaehander.py and modify the main function as in the following gist:
Then go to app.yaml and right after the handler definitions add these 2 lines:
In the root directory of web2py create a new a file called appengine_config.py with the following content (thanx WritersEar for pointing out):
And you are good to go!

