django-processinfo is a Django application to collect information about the running server processes.
Project description
django-processinfo is a experimental Django application to collect information about the running server processes.
This only works, if /proc/$$/status exists. So only on only on unix/linux like platforms.
What is it not:
track user actions
collect infos which are found in e.g. apache.log
not a profiler (read https://code.djangoproject.com/wiki/ProfilingDjango)
more info: http://www.python-forum.de/viewtopic.php?f=6&t=27168 (de)
Here some screenshot how it looks like:
Screenshots from v0.2 (19.08.2011):
install
pip install django-processinfo
usage
add to settings.py:
import os import django_processinfo INSTALLED_APPS = ( ... 'django_processinfo', ... ) MIDDLEWARE_CLASSES = ( 'django_processinfo.middlewares.django_processinfo.ProcessInfoMiddleware', ... ) # Put templates above admin contrib, e.g.: TEMPLATE_DIRS = ( ... os.path.join(os.path.abspath(os.path.dirname(django_processinfo.__file__)), "templates/"), ... ) # include app settings from ./django_processinfo/app_settings.py from django_processinfo import app_settings as PROCESSINFO # Change settings like this: PROCESSINFO.ADD_INFO = True
run: syncdb to create database tables.
ProcessInfoMiddleware
The ProcessInfoMiddleware can actually be inserted anywhere. However, it should be added far above. Thus, to capture everything.
For performance enhancement, put ProcessInfoMiddleware after LocalSyncCacheMiddleware. Then, however, lacks some statistical values (in every cache hit).
history
v0.4
Bugfix with “Total created processes”
Display “Process lifetime”
v0.3.0
Display some system information from /proc/meminfo and ‘load average’
Many Bugfixes
v0.2.0
Many things changes! Recreate tables, e.g: ./manage.py reset django_processinfo
v0.1.0
first Version
donation
links
GitHub |
|
PyPi |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django-processinfo-0.4.0.0824.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e85f2faed31b960d8cdfba6dad0bd20706f645635284d60a6c2ad1d0d529a0a |
|
MD5 | 7a32ae8fee7fb169cda49d7db3d9388d |
|
BLAKE2b-256 | e2ac1da303a88eb677566dd38fa4c30cfbf608bdeefe93a23f3aa2abac38711b |