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 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page