Log in

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


Powered by Moe. Yeah, the name is Moe. Powered by Google App Engine