Part of lp.testing View In Hierarchy
These are only retrievable at the end of a request, and for tests it is useful to be able to make assertions about the calls made during a request: this class provides a tool to gather them in a simple fashion.
StormStatementRecorder for a Storm-specific collector that
works outside a request.
|Instance Variables||count||The count of db queries the last web request made.|
|queries||The list of queries made. See lp.services.webapp.adapter.get_request_statements for more information.|
|Method||register||Start counting queries.|
Be sure to call unregister when finished with the collector.
After each web request the count and queries attributes are updated.