django-profiling-dashboard provides a dashboard with various profiling tools suitable for use in live servers.
Requirements
yappi for thread-aware live server profiling that can be enabled and disabled at run time;
Pympler for memory debugging;
psutil for system resource usage investigation;
Dashboard remplates are based on Bootstrap toolkit.
django-profiling-dashboard requires django >= 1.5 and python >= 2.6.
Installation
Make sure the requirements are installed:
pip install yappi pympler psutil pip install git+https://github.com/daevaorn/django-query-exchange.git#egg=django-query-exchange
and install django-profiling-dashboard using pip:
pip install django-profiling-dashboard
Usage
Add 'profiling_dashboard' and 'query_exchange' to INSTALLED_APPS:
INSTALLED_APPS = ( # ... 'query_exchange', 'profiling_dashboard', # ... )include ‘profiling_dashboard.urls’ in your urls.py:
urlpatterns = patterns('', # ... url(r'^profiling-dashboard/', include('profiling_dashboard.urls')), # ... )visit /profiling-dashboard/
Screenshots
TODO
Notes on CPU profiling in multi-process environment
If there are several server processes then the profiler have to be started and stopped for each process, and the profiling stats will be different for different processes.
In some deployment schemas (e.g. apache proxied by nginx) there is no way to make sure subsequent requests will be handled by the same server process so take this in account while using django-profiling-dashboard.
Release files for django-profiling-dashboard 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-profiling-dashboard-0.2.tar.gz | 18.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_profiling_dashboard-0.2-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 40.4 kB
Release files / django-profiling-dashboard-0.2.tar.gz
| Download URL | django-profiling-dashboard-0.2.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e16718a3206dc34a0acf748e44b6494a36acefbce69c5a4c1d584feb8cc88a4
|
|
BLAKE2b-256 checksum How to use checksums |
d0fdf106788ddfdb5d14e9303d14642d49d7ab9d8dfcea322914989bf396c7ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_profiling_dashboard-0.2-py2-none-any.whl
| Download URL | django_profiling_dashboard-0.2-py2-none-any.whl |
|---|---|
| Size | 22.1 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
f22e2a4fefa4ce33fdb8b977ac291ef2d08461e1e2cd6bca3e481bdffefb8a7e
|
|
BLAKE2b-256 checksum How to use checksums |
4dcbef198d8cfbca02ec62defcb6efae4af7bb96cec7ef132227c182364bc803
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |