Skip to main content

Profyle, a development tool for analysing and managing profile statistics

Project description

Profyle

Development tool for analysing and managing profile statistics

Package version Supported Python versions

Installation

$ pip install profyle

---> 100%

Example

FastApi

Implement

  • Implement the middleware:
from fastapi import FastAPI
from profyle.middleware.fastapi import ProfileMiddleware

app = FastAPI()
app.add_middleware(ProfileMiddleware)

@app.get("/items/{item_id}")
async def read_item(item_id: int):
    return {"item_id": item_id}

Run

  • Run the web server:
$ profyle start

INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO:     Started reloader process [28720]
INFO:     Started server process [28722]
INFO:     Waiting for application startup.
INFO:     Application startup complete.

Search

  • Search all requests tracing and click on it:

Alt text

Analyses

  • Analyses a request profile:

Alt text

Flask

... coming soon

Commands

start

  • Start the web server and view profile traces
$ profyle start

INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO:     Started reloader process [28720]
INFO:     Started server process [28722]
INFO:     Waiting for application startup.
INFO:     Application startup complete.

clean

  • Delete all profile traces
$ profyle clean

10 traces removed 

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

profyle-0.0.8.tar.gz (9.0 kB view hashes)

Uploaded Source

Built Distribution

profyle-0.0.8-py3-none-any.whl (10.4 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