prologin / django-pypprof

Pypprof Django adapter

Home Page:https://gitlab.com/prologin/tech/packages/django-pypprof

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-pypprof

django-pypprof is a wrapper of pypprof for ease of use with Django.

Installation

Install the package:

pip install django-pypprof --extra-index-url https://gitlab.com/api/v4/groups/prologin/-/packages/pypi/simple

Add it to your INSTALLED_APPS:

INSTALLED_APPS = [
  ...
  "django_pypprof",
  ...
]

Add the urls to your urls.py:

urlpatterns = [
  ...
  path("debug/pprof/", include("django_pypprof.urls")),
  ...
]

### Configuration

You can configure the sample rate of mprofile by adding the following setting:

PPROF_SAMPLE_RATE = 128 * 1024 # the default

About

Pypprof Django adapter

https://gitlab.com/prologin/tech/packages/django-pypprof

License:GNU Affero General Public License v3.0


Languages

Language:Python 76.4%Language:Nix 23.6%