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