Skip to content

WSGI Middleware for integrating vmprof

License

Notifications You must be signed in to change notification settings

ronenh/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.

About

WSGI Middleware for integrating vmprof

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%