WSGI middleware to measure the memory footprint of GAE Python applications.
The apptrace package provides a WSGI middleware for tracking memory usage in Google App Engine Python applications.
Since apptrace is meant for development and debugging purposes only, it works with the development appserver of the Google App Engine Python SDK and TyphoonAE. It will definitely not work on the GAE production environment.
Copyright 2010, 2011 Tobias Rodaebel
This software is released under the Apache License, Version 2.0. You may obtain a copy of the License at
Google App Engine is a trademark of Google Inc.
The apptrace package requires Guppy-PE (http://guppy-pe.sourceforge.net) to be
installed on your PYTHONPATH. It will be automatically installed when you use
The easiest way to install apptrace is (provided that you have setuptools
installed) to use
In order to run the demo application with apptrace run following commands:
$ apptracectl init demo $ python dev_appserver.py demo
See this wiki page for a more detailed documentation on using apptrace:
If you want to tinker with the most recent development version of apptrace, install the development environment by typing following commands:
$ hg clone https://apptrace.googlecode.com/hg apptrace-dev $ cd apptrace-dev $ python bootstrap.py --distribute $ ./bin/buildout
All unit tests can be run by executing the following command:
$ ./bin/python setup.py test --appengine-path=<path to the SDK>
Tobias Rodaebel <tobias dot rodaebel at googlemail dot com>
- Fixes a compatibility issue when importing simplejson.
- Fixes an issue where apptrace crashed when tracing old style class objects.
- Fixes an issue where some modules haven’t been traced.
- Fixes an issue where the code browser wasn’t able to load modules from the SDK.
- Adds simple code browser.
- Uses a separate memcache namespace for storing records.
- Initial revision.