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.

Files for wsgi-vmprof, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size wsgi_vmprof-0.0.1-py3-none-any.whl (4.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size wsgi-vmprof-0.0.1.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

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