Skip to content
This repository has been archived by the owner on Oct 26, 2020. It is now read-only.

kobinpy/wsgi-vmprof

Repository files navigation

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!!"

# Add wsgi-vmprof as a WSGI middleware!
app = VmprofMiddleware(app)

if __name__ == "__main__":
    bottle.run(app=app)

Requirements

  • Python 3.3 or later
  • vmprof

License

This software is licensed under the MIT License.