tipfy.ext.appstats ¶
This extension provides a middleware to enable App Engine's Appstats in your app. Appstats is an awesome suite of tools to measure the performance and help finding bottlenecks in GAE apps.
Watch Guido van Rossum's talk on Google I/O to learn more about it.
Setup¶
First, add an Appstats handler to app.yaml. The path you define here will be used to
access the web-based administrative interface for browsing statistics. The implementation of AppStats makes sure it can only be used by administrators, therefore there is no need to declare a login: admin restriction.
app.yaml
- url: /stats.*
script: $PYTHON_LIB/google/appengine/ext/appstats/ui.py
Next, add the middleware to your config.py:
config.py
config['tipfy'] = {
'middleware': [
# Enable Appstats profiling.
'tipfy.ext.appstats.AppstatsMiddleware',
],
}
That's it. Upload your app and it will start recording access statistics that you can later
analyse. You can access the statistics in the path /stats of your app, or whatever path
you've set in app.yaml.
Extension Reference¶
- Name: tipfy.ext.appstats
- Author: Bryan McLemore
- License: BSD
- Tags: profiling, tools
- URL: http://www.tipfy.org/wiki/extensions/appstats/
- PyPi page: http://pypi.python.org/pypi/tipfy.ext.appstats/
- Source code: http://code.google.com/p/tipfy-ext-appstats/
- Issue tracker: http://code.google.com/p/tipfy-ext-appstats/issues/list
- Version: latest
- Edited by Em. on 8/18/10 6:29 AM
- Save on Delicious | Submit to Reddit
- History
- Edit
