wsgi-vmprof
wsgi-vmprof WSGI Middleware for integrating vmprof.
How to use
Installation
$ pip install wsgi-vmprof
Basic Usage
import time
import bottle
from wsgi_vmprof import VmprofMiddleware
app = bottle.default_app()
@app.route('/')
def index():
time.sleep(1)
return "Hello world!!"
if __name__ == "__main__":
# Add wsgi-vmprof as a WSGI middleware!
app = VmprofMiddleware(app)
bottle.run(app=app)
Requirements
- Python 3.3 or later
- vmprof
License
This software is licensed under the MIT License.