Skip to main content

No project description provided

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wsgi-vmprof-0.0.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

wsgi_vmprof-0.0.1-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page